Improper Limitation of a Pathname to a Restricted Directory in Jenkins
Moderate severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Mar 12, 2024
Package
Affected versions
<= 2.176.1
>= 2.177, <= 2.185
Patched versions
2.176.2
2.186
Description
Published by the National Vulnerability Database
Jul 17, 2019
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Jun 28, 2022
Last updated
Mar 12, 2024
A path traversal vulnerability in Jenkins 2.185 and earlier, LTS 2.176.1 and earlier in
core/src/main/java/hudson/model/FileParameterValue.java
allowed attackers with Job/Configure permission to define a file parameter with a file name outside the intended directory, resulting in an arbitrary file write on the Jenkins master when scheduling a build.References