MODERATE 6.5

CVE-2022-36882

Lack of authentication mechanism in Jenkins Git Plugin webhook

Description

Git Plugin provides a webhook endpoint at /git/notifyCommit that can be used to notify Jenkins of changes to an SCM repository. For its most basic functionality, this endpoint receives a repository URL, and Jenkins will schedule polling for all jobs configured with the specified repository. In Git Plugin 4.11.3 and earlier, this endpoint can be accessed with GET requests and without authentication.

This webhook endpoint does not require POST requests, resulting in a cross-site request forgery (CSRF) vulnerability.

Git Plugin 4.11.4 requires a token parameter which will act as an authentication for the webhook endpoint. While GET requests remain allowed, attackers would need to be able to provide a webhook token. For more information see the plugin documentation.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.jenkins-ci.plugins » git
< 4.11.4
4.11.4

Blast radius

1affected artifacts
1,278affected versions
183dependent artifacts (est.)
13,115dependent versions

54% of the dependent artifacts (100) still pull an affected version in their latest release.

DepthDependent versions
Direct
5,913
2 hops
6,871
3 hops
331

Most used dependents

Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.