CVE-2022-25174
| Severity | 8.8 High CVSS 3.1 2 scores |
|---|---|
| Fixed in | 561.va, 2.21.1, 2.18.1 |
| Weakness | OS command injection (CWE-78) |
| Published | 15 Feb 2022 |
| Updated | 17 Jun 2026 |
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.
Exploitation status
No public exploit
No exploit has been reported in the sources we check. Published 4 years ago.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment no assessment published
- Indexed PoC none indexed
- EPSS 1.4% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full Process
- Action available security rule
- Review automated Inferred
- Record active
| Decided by | A vulnerability class already blocked by an ARMR security rule |
|---|---|
| Finding | Protected by Waratek's ARMR command-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-78: OS Command Injection. |
How to mitigate CVE-2022-25174
Upgrade the affected software to a release that fixes it: 561.va, 2.21.1 or 2.18.1. Until you can, Waratek RASP blocks exploitation with its process rule. It runs inside the Java application, with no code changes.
CVSS
8.8 HIGH
v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
2 metrics
CVSS
8.8 HIGH v3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
2 metrics
We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.
| Version | Score | Band | Vector | Assigner | Type | |
|---|---|---|---|---|---|---|
| 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 | Primary | published |
| CVSS 2.0 | 6.5 | none | AV:N/AC:L/Au:S/C:P/I:P/A:P |
NVD | Primary |
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib |
544.vff04fa68714d | 561.va |
unbounded |
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib |
2.19 | 2.21.1 |
unbounded |
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib |
0 | 2.18.1 |
unbounded |
Products and versions
2 products, 4 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| nvd | jenkins | pipeline\ | generic | shared_groovy_libraries |
| osv | org.jenkins-ci.plugins.workflow | workflow-cps-global-lib | generic | < 2.18.1 · ≥ 2.19 and < 2.21.1 · ≥ 544.4.68714 and < 561 |
References
Timeline
Timeline
| Published | 2022-02-15 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |