High

Untrusted users can modify some Pipeline libraries in Jenkins Pipeline: Deprecated Groovy Libraries Plugin

  • Disclosed: 13.04.2022
  • Updated: 11.10.2026 11:21

Multibranch Pipelines by default limit who can change the Pipeline definition from the Jenkinsfile. This is useful for SCMs like GitHub: Jenkins can build content from users without commit access, but who can submit pull requests, without granting them the ability to modify the Pipeline definition. In that case, Jenkins will just use the Pipeline definition in the pull request’s destination branch instead.

In Pipeline: Deprecated Groovy Libraries Plugin 564.ve62a_4eb_b_e039 and earlier the same protection does not apply to uses of the library step with a retriever argument pointing to a library in the current build’s repository and branch (e.g., library(…, retriever: legacySCM(scm))). This allows attackers able to submit pull requests (or equivalent), but not able to commit directly to the configured SCM, to effectively change the Pipeline behavior by changing the library behavior in their pull request, even if the Pipeline is configured to not trust them.

Pipeline: Deprecated Groovy Libraries Plugin 566.vd0a_a_3334a_555 and 2.21.3 aborts library retrieval if the library would be retrieved from the same repository and revision as the current build, and the revision being built is untrusted.

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.21.3, >= 544.vff04fa68714d, < 566.vd0a 2.21.3, 566.vd0a

References

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

Sources and licenses

OSV / GitHub Advisory Database - GHSA-hh6f-6fp5-gfpv - 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. Untrusted users can modify some Pipeline libraries in Jenkins Pipeline: Deprecated Groovy Libraries Plugin this entry
    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. High · 8.8 CVE-2022-25181 < 561.va_ce0de3c2d69 561.va_ce0de3c2d69
  5. High · 8.8 CVE-2022-25182 < 561.va_ce0de3c2d69 561.va_ce0de3c2d69
  6. 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.