Improper Limitation of a Pathname to a Restricted Directory in Jenkins
Moderate severity
GitHub Reviewed
Published
May 13, 2022
to the GitHub Advisory Database
•
Updated Mar 1, 2024
Package
Affected versions
< 2.89.4
>= 2.90, < 2.107
Patched versions
2.89.4
2.107
Description
Published by the National Vulnerability Database
Feb 20, 2018
Published to the GitHub Advisory Database
May 13, 2022
Reviewed
Jun 28, 2022
Last updated
Mar 1, 2024
Jenkins before 2.107 and Jenkins LTS before 2.89.4 did not properly prevent specifying relative paths that escape a base directory for URLs accessing plugin resource files. This allowed users with Overall/Read permission to download files from the Jenkins master they should not have access to. On Windows, any file accessible to the Jenkins master process could be downloaded. On other operating systems, any file within the Jenkins home directory accessible to the Jenkins master process could be downloaded.
References