Skip to content
Fencer Vulns
high 8.8

CVE-2022-25173 json

Improper Neutralization of Special Elements used in an OS Command in Jenkins Pipeline: Groovy Plugin

published 2022-02-15 4 y ago modified 2026-06-17 4 mo ago also GHSA-4m7p-55jm-3vwv , EUVD-2022-0815

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 73%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.jenkins-ci.plugins.workflow:workflow-cps 2.92.1, 2.94.1, 2656.vf7a
  • Jenkins project Jenkins Pipeline: Groovy Plugin 2.92.1, 2.94.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-25173 updated cvss 8.8

workflow-cps: OS command execution through crafted SCM contents

  • Red Hat OpenShift Container Platform 3.11 jenkins-2-plugins 3.11.1650371376-1.el7
    fixed: vendor fix RHSA-2022:1420
  • Red Hat OpenShift Container Platform 4.6 jenkins-2-plugins 4.6.1650364520-1.el8
    fixed: vendor fix RHSA-2022:1620
  • Red Hat OpenShift Container Platform 4.7 jenkins-2-plugins 4.7.1648800585-1.el8
    fixed: vendor fix RHSA-2022:1248
  • Red Hat OpenShift Container Platform 4.8 jenkins-2-plugins 4.8.1646993358-1.el8
    fixed: vendor fix RHSA-2022:0871
  • Red Hat OpenShift Container Platform 4.9 jenkins-2-plugins 4.9.1647580879-1.el8
    fixed: vendor fix RHSA-2022:1021
  • Red Hat OpenShift Container Platform 4.10 jenkins-2-plugins 4.10.1647505461-1.el8
    fixed: 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 more
    not 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.44% chance of exploitation in the next 30 days, higher than 73% 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
>=2646.v6ed3b5b01ff1, <2656.vf7a
>=2.93, <2.94.1
<2.92.1
2656.vf7a
2.94.1
2.92.1

Affected products

  • Jenkins project Jenkins Pipeline: Groovy Plugin

Classification

Weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command

References

Sources

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.