VDB
Sign up
MEDIUM6.5

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-core

Details

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

Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 0Fixed in: 2.138.2
Fix# pom.xml: bump <version>2.138.2</version> for org.jenkins-ci.main:jenkins-core
Maven/org.jenkins-ci.main:jenkins-core
Introduced in: 2.140Fixed in: 2.146
Fix# pom.xml: bump <version>2.146</version> for org.jenkins-ci.main:jenkins-core
Maven/org.kohsuke.stapler:stapler-parent
Introduced in: 0Fixed in: 1.250.2
Fix# pom.xml: bump <version>1.250.2</version> for org.kohsuke.stapler:stapler-parent

References