# CVE-2022-25174: Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Shared Groovy Libraries Plugin

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.40%, higher than 73% of CVEs (2026-12-01)
- Published: 2022-02-15T16:10:52.000Z
- Modified: 2026-06-17T04:33:09.067Z
- Also known as: GHSA-g9fx-6j5c-grmw
- Weaknesses: CWE-78
- Assigned by: jenkins

## Description

Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the same checkout directories for distinct SCMs for Pipeline libraries, allowing attackers with Item/Configure permission to invoke arbitrary OS commands on the controller through crafted SCM contents.

(As written by CVE List.)

## Affected

- Jenkins project Jenkins Pipeline: Shared Groovy Libraries Plugin: from unspecified up to 552.vd9cc05b8a2e1 (not affected: 2.21.1; 2.18.1)
- org.jenkins-ci.plugins.workflow:workflow-cps-global-lib (Maven): from 544.vff04fa68714d before 561.va; from 2.19 before 2.21.1; before 2.18.1
- jenkins pipeline:shared_groovy_libraries: up to 552.vd9cc05b8a2e1

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2463> (patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25174> (advisory)
- <https://github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/ace0de3c2d691662021ea10306eeb407da6b6365> (web)
- <https://github.com/CVEProject/cvelist/blob/e19344451ce1c4a4181b9f094b8fd38cd8d86c9f/2022/25xxx/CVE-2022-25174.json> (web)

## Sources

- CVE List: [CVE-2022-25174](https://www.cve.org/CVERecord?id=CVE-2022-25174), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-g9fx-6j5c-grmw](https://github.com/advisories/GHSA-g9fx-6j5c-grmw), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-25174](https://nvd.nist.gov/vuln/detail/CVE-2022-25174), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25174 · Whole record: https://cve.day/CVE-2022-25174.json · Rebuilt by cve.day 2026-11-25T22:58:09.694Z
