Medium

Improper Limitation of a Pathname to a Restricted Directory in Jenkins Pipeline: Shared Groovy Libraries Plugin

  • Disclosed: 16.02.2022
  • Updated: 11.10.2026 11:21

Jenkins Pipeline: Shared Groovy Libraries Plugin 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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.jenkins-ci.plugins.workflow:workflow-cps-global-lib >= 2.22, < 561.va_ce0de3c2d69, >= 2.19, < 2.21.1, < 2.18.1 561.va_ce0de3c2d69, 2.21.1, 2.18.1

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-22
Platform
Java / Kotlin (Maven)
Package
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib
Disclosed
16.02.2022
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-5hfv-mg5x-mv32 - CC BY 4.0

Vulnerability history: org.jenkins-ci.plugins.workflow:workflow-cps-global-lib

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (10) in the archive
Total entries
10
First → latest
02.2022 10.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 7
  • Medium 3

Disclosures per year

  1. 2022: 10
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
Severity:
  1. High · 8.8 CVE-2022-43406 < 588.v576c103a_ff86 588.v576c103a_ff86
  2. High · 7.3 CVE-2022-29047 < 2.21.3, >= 544.vff04fa68714d, < 566.vd0a 2.21.3, 566.vd0a
  3. High · 8.8 CVE-2022-25174 >= 544.vff04fa68714d, < 561.va, >= 2.19, < 2.21.1, < 2.18.1 561.va, 2.21.1, 2.18.1
  4. Improper Limitation of a Pathname to a Restricted Directory in Jenkins Pipeline: Shared Groovy Libraries Plugin this entry
    Medium · 6.5 CVE-2022-25178 >= 2.22, < 561.va_ce0de3c2d69, >= 2.19, < 2.21.1, < 2.18.1 561.va_ce0de3c2d69, 2.21.1, 2.18.1
  5. High · 8.8 CVE-2022-25181 < 561.va_ce0de3c2d69 561.va_ce0de3c2d69
  6. High · 8.8 CVE-2022-25182 < 561.va_ce0de3c2d69 561.va_ce0de3c2d69
  7. High · 8.8 CVE-2022-25183 < 561.va_ce0de3c2d69 561.va_ce0de3c2d69

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.