CVE-2022-25178
MEDIUM 6.5CVSS 3.1Improper Limitation of a Pathname to a Restricted Directory in Jenkins Pipeline: Shared Groovy Libraries Plugin
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.
- Published
- 15 Feb 2022
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-5hfv-mg5x-mv32
- Sources
- NVDJSONOSV GHSA-5hfv-mg5x-mv32JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jenkins | pipeline:shared_groovy_librariescpe:2.3:a:jenkins:pipeline\:shared_groovy_libraries:*:*:*:*:*:jenkins:*:* |
<= 552.vd9cc05b8a2e1 | |
| OSV | Maven | org.jenkins-ci.plugins.workflow:workflow-cps-global-lib | >= 2.22, < 561.va_ce0de3c2d69 | 561.va_ce0de3c2d69 |
| OSV | Maven | org.jenkins-ci.plugins.workflow:workflow-cps-global-lib | >= 2.19, < 2.21.1 | 2.21.1 |
| OSV | Maven | org.jenkins-ci.plugins.workflow:workflow-cps-global-lib | < 2.18.1 | 2.18.1 |
References
- https://www.jenkins.io/security/advisory/2022-02-15/#SECURITY-2613 · Issue Tracking, Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25178 · ADVISORY
- https://github.com/jenkinsci/workflow-cps-global-lib-plugin · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 15 Feb 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 16 Feb 2022)