WaratekVRT Sign in

CVE-2022-25178

Severity6.5 Medium CVSS 3.1 2 scores
Fixed in561.va_ce0de3c2d69, 2.21.1, 2.18.1
WeaknessPath traversal (CWE-22)
Published15 Feb 2022
Updated17 Jun 2026

Description

Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier does not restrict the names of resources passed to the libraryResource step, allowing attackers able to configure Pipelines permission to read arbitrary files on the Jenkins controller file system.

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.7% 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 path-traversal 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-22: Path Traversal.

How to mitigate CVE-2022-25178

Upgrade the affected software to a release that fixes it: 561.va_ce0de3c2d69, 2.21.1 or 2.18.1. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

6.5 MEDIUM v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 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 6.5 MEDIUM CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N NVD Primary published
CVSS 2.0 4.0 none AV:N/AC:L/Au:S/C:P/I:N/A:N 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 2.22 561.va_ce0de3c2d69 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 · ≥ 2.22 and < 561.0.3.2.69

References

URLTags
https://github.com/jenkinsci/workflow-cps-global-lib-plugin PACKAGE
https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2613 WEB

Timeline

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