WaratekVRT Sign in

CVE-2022-25174

Severity8.8 High CVSS 3.1 2 scores
Fixed in561.va, 2.21.1, 2.18.1
WeaknessOS command injection (CWE-78)
Published15 Feb 2022
Updated17 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.

  • 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

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

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.

Waratek RASP Runtime protection for Java applications

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

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.

VersionScoreBandVectorAssignerType
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
PackageIntroducedFixedLast 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
SourceVendorProductSchemeAffected 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

URLTags
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
https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2463 WEB

Timeline

Published2022-02-15By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.