CVE-2020-2160
Cross-Site Request Forgery in Jenkins
Description
An extension point in Jenkins allows selectively disabling cross-site request forgery (CSRF) protection for specific URLs.
Implementations of that extension point received a different representation of the URL path than the Stapler web framework uses to dispatch requests in Jenkins 2.227 and earlier, LTS 2.204.5 and earlier. This discrepancy allowed attackers to craft URLs that would bypass the CSRF protection of any target URL.
Jenkins now uses the same representation of the URL path to decide whether CSRF protection is needed for a given URL as the Stapler web framework uses.
In case of problems, administrators can disable this security fix by setting the system property hudson.security.csrf.CrumbFilter.UNPROCESSED_PATHINFO to true.
As an additional safeguard, semicolon (;) characters in the path part of a URL are now banned by default. Administrators can disable this protection by setting the system property jenkins.security.SuspiciousRequestFilter.allowSemicolonsInPath to true.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.main » jenkins-core | < 2.204.6>= 2.205, < 2.228 | 2.204.6, 2.228 |
Blast radius
45% of the dependent artifacts (46) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,880 |
| 2 hops | 704 |
| 3 hops | 32 |
| 4 hops | 81 |
| 5 hops | 26 |
| 6 hops | 66 |
Most used dependents
- org.jenkins-ci.main » jenkins-test-harness99 usages
- org.jenkins-ci.plugins » job-dsl71 usages
- org.jenkins-ci.main » jenkins-war62 usages
- org.jenkins-ci.main » jenkins-test-harness-tools37 usages
- org.jenkins-ci.plugins » config-file-provider32 usages
- io.jenkins.blueocean » blueocean-rest-impl12 usages
- org.csanchez.jenkins.plugins » kubernetes11 usages
- io.jenkins.blueocean » blueocean-pipeline-api-impl9 usages
- org.jenkins-ci.lib » xtrigger-lib9 usages
- org.jenkins-ci.plugins » ws-cleanup6 usages
- org.jenkins-ci.plugins » resource-disposer6 usages
- io.jenkins.blueocean » blueocean-events4 usages
- com.synopsys.integration » jenkins-common4 usages
- io.jenkins.jenkinsfile-runner » payload-dependencies4 usages
- io.jenkins.jenkinsfile-runner » setup4 usages
Computed from the dependency graph of build 20261124.0621 (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-2020-2160 | nvd.nist.gov |
| Package | jenkinsci/jenkins | github.com |
| Web | jenkinsci/jenkins commit f479652 | github.com |
| Web | jenkinsci/jenkins commit f7cf283 | github.com |
| Web | security/advisory/2020-03-25 | jenkins.io |
| Web | lists/oss-security/2020/03/25/2 | openwall.com |
