CVE-2022-25174 json
Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Shared Groovy Libraries Plugin
published 2022-02-15 4 y ago modified 2026-06-17 4 mo ago also GHSA-g9fx-6j5c-grmw , EUVD-2022-1006
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.jenkins-ci.plugins.workflow:workflow-cps-global-lib 2.18.1, 2.21.1, 561.va
- Jenkins project Jenkins Pipeline: Shared Groovy Libraries Plugin 2.18.1, 2.21.1
- jenkins openshift 3.11 2.319.3.1650348949-1.el7
- jenkins-2-plugins openshift 3.11 3.11.1650371376-1.el7
- haproxy openshift 4.6 2.0.16-3.el7
- haproxy openshift 4.6 2.0.16-5.el8
- haproxy20 openshift 4.6 2.0.16-3.el7
- haproxy20 openshift 4.6 2.0.16-5.el8
- jenkins-2-plugins openshift 4.6 4.6.1650364520-1.el8
- haproxy openshift 4.9 2.2.15-4.el8
red hat advisories RHSA-2022:1420RHSA-2022:1620RHSA-2022:1021RHSA-2022:1248RHSA-2022:1025RHSA-2022:0871
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-25174 updated cvss 8.8
workflow-cps-global-lib: OS command execution through crafted SCM contents
-
Red Hat OpenShift Container Platform 3.11 jenkins-2-plugins 3.11.1650371376-1.el7fixed: vendor fix RHSA-2022:1420
-
Red Hat OpenShift Container Platform 4.6 jenkins-2-plugins 4.6.1650364520-1.el8fixed: vendor fix RHSA-2022:1620
-
Red Hat OpenShift Container Platform 4.7 jenkins-2-plugins 4.7.1648800585-1.el8fixed: vendor fix RHSA-2022:1248
-
Red Hat OpenShift Container Platform 4.8 jenkins-2-plugins 4.8.1646993358-1.el8fixed: vendor fix RHSA-2022:0871
-
Red Hat OpenShift Container Platform 4.9 jenkins-2-plugins 4.9.1647580879-1.el8fixed: vendor fix RHSA-2022:1021
-
Red Hat OpenShift Container Platform 4.10 jenkins-2-plugins 4.10.1647505461-1.el8fixed: vendor fix RHSA-2022:1025
-
Red Hat OpenShift Container Platform 3.11 jenkins 2.319.3.1650348949-1.el7, prometheus 3.11.685-1.g99aae51.el7, openshift-kuryr 3.11.685-1.g0c4bf66.el7, openshift-kuryr-cni 3.11.685-1.g0c4bf66.el7, atomic-openshift 3.11.685-1.git.0.7faaeaa.el7, openshift-ansible 3.11.685-1.git.0.a9090ac.el7, +35 more Red Hat OpenShift Container Platform 4.6 haproxy 2.0.16-3.el7, haproxy 2.0.16-5.el8, haproxy20 2.0.16-3.el7, haproxy20 2.0.16-5.el8, python-boto 2.34.0-5.el7, cri-o 1.19.6-3.rhaos4.6.git3c20b65.el7, +5 more Red Hat OpenShift Container Platform 4.8 cri-o 1.21.5-3.rhaos4.8.gitaf64931.el7, cri-o 1.21.5-3.rhaos4.8.gitaf64931.el8, openshift 4.8.0-202203100757.p0.gee73ea2.assembly.stream.el7, openshift 4.8.0-202203100757.p0.gee73ea2.assembly.stream.el8, openshift-ansible 4.8.0-202203100145.p0.gfccb320.assembly.stream.el7, openshift-hyperkube 4.8.0-202203100757.p0.gee73ea2.assembly.stream.el7, +2 more Red Hat OpenShift Container Platform 4.9 haproxy 2.2.15-4.el8, haproxy22 2.2.15-4.el8, runc 1.0.1-3.rhaos4.9.git4144b63.el8, cri-o 1.22.3-2.rhaos4.9.git28c5a70.el7, cri-o 1.22.3-2.rhaos4.9.git28c5a70.el8, openshift-ansible 4.9.0-202203150226.p0.g8abf85e.assembly.stream.el7, +5 more Red Hat OpenShift Container Platform 4.10 cri-o 1.23.2-2.rhaos4.10.git071ae78.el8, openshift 4.10.0-202203211237.p0.gb0357ed.assembly.stream.el7, openshift 4.10.0-202203211237.p0.gb0357ed.assembly.stream.el8, openshift-clients 4.10.0-202203170916.p0.g6de42bd.assembly.stream.el7, openshift-clients 4.10.0-202203170916.p0.g6de42bd.assembly.stream.el8, openshift-hyperkube 4.10.0-202203211237.p0.gb0357ed.assembly.stream.el7, +3 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.40% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.jenkins-ci.plugins.workflow:workflow-cps-global-lib | >=544.vff04fa68714d, <561.va >=2.19, <2.21.1 <2.18.1 |
561.va 2.21.1 2.18.1 |
Affected products
- Jenkins project Jenkins Pipeline: Shared Groovy Libraries Plugin
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
jenkins.io
/security/advisory/2022-02-15/#SECURITY-2463
web, patch, vendor-advisory
-
github.com
/jenkinsci/workflow-cps-global-lib-plugin/commit/ace0de3c2d691662021ea10306eeb407da6b6365
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-25174
advisory
-
github.com
/CVEProject/cvelist/blob/e19344451ce1c4a4181b9f094b8fd38cd8d86c9f/2022/25xxx/CVE-2022-25174.json
web
Sources
- CVE List CVE-2022-25174
- GitHub Advisory GHSA-g9fx-6j5c-grmw
- NVD CVE-2022-25174
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.