Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
HIGH severity

CVE-2022-25174 — workflow-cps-global-lib

HIGHFix: jenkinsci/workflow-cps-global-lib-plugin@ace0de3

CVE-2022-25174 is a high-severity (CVSS 8.8) OS Command Injection vulnerability in org.jenkins-ci.plugins.workflow:workflow-cps-global-lib. A fix is available for org.jenkins-ci.plugins.workflow:workflow-cps-global-lib — see the affected versions and patch details below.

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

Also known asGHSA-g9fx-6j5c-grmw
Published
Updated
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed
Exploitation data as of Oct 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.4%probability of exploitation in next 30 days
Lower Risk-0.04%
Lower risk than most CVEs72th percentile — riskier than 72% of all scored CVEsHighest risk
0.00%0.65%1.30%1.94%0.2%1.4%May 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2022-25174 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

3 pkgs affected
☕org.jenkins-ci.plugins.workflow:workflow-cps-global-lib☕org.jenkins-ci.plugins.workflow:workflow-cps-global-lib☕org.jenkins-ci.plugins.workflow:workflow-cps-global-lib

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

Jenkins Pipeline: Shared Groovy Libraries Plugin prior to 561.va_ce0de3c2d69, 2.21.1, and 2.18.1 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.

Affected Packages

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.jenkins-ci.plugins.workflow:workflow-cps-global-lib≥ 544.vff04fa68714d&&< 561.va561.vaorg.jenkins-ci.plugins.workflow:workflow-cps-global-lib:561.va
☕Mavenorg.jenkins-ci.plugins.workflow:workflow-cps-global-lib≥ 2.19&&< 2.21.12.21.1org.jenkins-ci.plugins.workflow:workflow-cps-global-lib:2.21.1
☕Mavenorg.jenkins-ci.plugins.workflow:workflow-cps-global-liball versions2.18.1org.jenkins-ci.plugins.workflow:workflow-cps-global-lib:2.18.1

Affected Products

1 product · 1 configurations
Application
pipeline\jenkins
≤ 552.vd9cc05b8a2e1
1 version
shared_groovy_libraries

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jenkins-ci.plugins.workflow:workflow-cps-global-lib, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.jenkins-ci.plugins.workflow:workflow-cps-global-lib to 561.va or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-25174 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant
ProductFixed inAdvisory
Red Hat OpenShift Container Platform 3.11jenkins-2-plugins-0:3.11.1650371376-1.el7RHSA-2022:1420
Red Hat OpenShift Container Platform 4.10jenkins-2-plugins-0:4.10.1647505461-1.el8RHSA-2022:1025
Red Hat OpenShift Container Platform 4.6jenkins-2-plugins-0:4.6.1650364520-1.el8RHSA-2022:1620
Red Hat OpenShift Container Platform 4.7jenkins-2-plugins-0:4.7.1648800585-1.el8RHSA-2022:1248
Red Hat OpenShift Container Platform 4.8jenkins-2-plugins-0:4.8.1646993358-1.el8RHSA-2022:0871
Red Hat OpenShift Container Platform 4.9jenkins-2-plugins-0:4.9.1647580879-1.el8RHSA-2022:1021

Frequently Asked Questions

Jenkins Pipeline: Shared Groovy Libraries Plugin prior to 561.va_ce0de3c2d69, 2.21.1, and 2.18.1 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.
O3 Security · Impact-Aware SCA

Is CVE-2022-25174 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2022-25174: workflow-cps-global-lib — Fixed in 561.va