GHSA-5hfp-964w-5vgm
Improper Limitation of a Pathname to a Restricted Directory in Jenkins
Quick fix
GHSA-5hfp-964w-5vgm — org.jenkins-ci.main:jenkins-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.138.2</version> for org.jenkins-ci.main:jenkins-coreDetails
A path traversal vulnerability exists in the Stapler web framework used by Jenkins 2.145 and earlier, LTS 2.138.1 and earlier in core/src/main/java/org/kohsuke/stapler/Facet.java, groovy/src/main/java/org/kohsuke/stapler/jelly/groovy/GroovyFacet.java, jelly/src/main/java/org/kohsuke/stapler/jelly/JellyFacet.java, jruby/src/main/java/org/kohsuke/stapler/jelly/jruby/JRubyFacet.java, jsp/src/main/java/org/kohsuke/stapler/jsp/JSPFacet.java that allows attackers to render routable objects using any view in Jenkins, exposing internal information about those objects not intended to be viewed, such as their toString() representation.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 2.138.2# pom.xml: bump <version>2.138.2</version> for org.jenkins-ci.main:jenkins-core2.140Fixed in: 2.146# pom.xml: bump <version>2.146</version> for org.jenkins-ci.main:jenkins-core0Fixed in: 1.250.2# pom.xml: bump <version>1.250.2</version> for org.kohsuke.stapler:stapler-parentReferences
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000997[ADVISORY]
- https://github.com/jenkinsci/jenkins/commit/fd5f5be0304c6bf1918892b81e2efb6b6d09c521[WEB]
- https://github.com/jenkinsci/stapler/commit/0dfc28aa2102a59638484fc11c4c53b1dbb2baf0[WEB]
- https://github.com/jenkinsci/jenkins[PACKAGE]
- https://jenkins.io/security/advisory/2018-10-10/#SECURITY-867[WEB]