MEDIUM6.5
GHSA-4pw5-r58h-fv24
Path traversal vulnerability on Windows in Jenkins
Quick fix
GHSA-4pw5-r58h-fv24 — org.jenkins-ci.main:jenkins-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.303.2</version> for org.jenkins-ci.main:jenkins-coreDetails
The file browser for workspaces, archived artifacts, and `userContent/` in Jenkins 2.314 and earlier, LTS 2.303.1 and earlier may interpret some paths to files as absolute on Windows.
This results in a path traversal vulnerability allowing attackers with Overall/Read permission (Windows controller) or Job/Workspace permission (Windows agents) to obtain the contents of arbitrary files.\n\nThe file browser in Jenkins 2.315, LTS 2.303.2 refuses to serve files that would be considered absolute paths.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.jenkins-ci.main:jenkins-core
Introduced in:
0Fixed in: 2.303.2Fix
# pom.xml: bump <version>2.303.2</version> for org.jenkins-ci.main:jenkins-coreMaven/org.jenkins-ci.main:jenkins-core
Introduced in:
2.304Fixed in: 2.315Fix
# pom.xml: bump <version>2.315</version> for org.jenkins-ci.main:jenkins-coreReferences
- https://nvd.nist.gov/vuln/detail/CVE-2021-21683[ADVISORY]
- https://github.com/jenkinsci/jenkins/commit/3f679fc12d073676a4441d3fa8b5fff34c07662f[WEB]
- https://github.com/jenkinsci/jenkins[PACKAGE]
- https://www.jenkins.io/security/advisory/2021-10-06/#SECURITY-2481[WEB]
- http://www.openwall.com/lists/oss-security/2021/10/06/1[WEB]