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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » git | < 4.11.4 | 4.11.4 |
Blast radius
54% of the dependent artifacts (100) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 5,913 |
| 2 hops | 6,871 |
| 3 hops | 331 |
Most used dependents
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkins-ci.plugins.workflow » workflow-scm-step104 usages
- org.jenkins-ci.plugins » github-branch-source48 usages
- com.coravy.hudson.plugins.github » github22 usages
- org.jenkins-ci.plugins » cloudbees-bitbucket-branch-source21 usages
- io.jenkins.blueocean » blueocean-rest-impl12 usages
- io.jenkins.blueocean » blueocean-pipeline-api-impl9 usages
- org.jenkins-ci.plugins » git-server8 usages
- io.jenkins.plugins » gitlab-branch-source7 usages
- com.groupon.jenkins-ci.plugins » DotCi6 usages
- com.sonyericsson.hudson.plugins.gerrit » gerrit-trigger6 usages
- io.jenkins.blueocean » blueocean-events4 usages
- org.jenkins-ci.plugins » github-oauth4 usages
- io.jenkins.plugins » git-forensics4 usages
- org.jenkins-ci.plugins » github-organization-folder4 usages
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.
References
| Advisory | NVD CVE-2022-36882 | nvd.nist.gov |
| Web | jenkinsci/git-plugin commit b46165c | github.com |
| Web | security/advisory/2022-07-27 | jenkins.io |
| Web | lists/oss-security/2022/07/27/1 | openwall.com |
