CVE-2022-29047
Untrusted users can modify some Pipeline libraries in Jenkins Pipeline: Deprecated Groovy Libraries Plugin
Jenkins Pipeline: Shared Groovy Libraries Plugin 564.ve62a_4eb_b_e039 and earlier, except 2.21.3, 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 definition of a dynamically retrieved library in their pull request, even if the Pipeline is configured to not trust them.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.3
Jenkins Pipeline: Shared Groovy Libraries Plugin 564.ve62a_4eb_b_e039 and earlier, except 2.21.3, 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 definition of a dynamically retrieved library in their pull request, even if the Pipeline is configured to not trust them.
- Record
CVE-2022-29047- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-863
- Updated
- 2026-11-02
CVE List No score
Jenkins Pipeline: Shared Groovy Libraries Plugin 564.ve62a_4eb_b_e039 and earlier, except 2.21.3, 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 definition of a dynamically retrieved library in their pull request, even if the Pipeline is configured to not trust them.
- Record
CVE-2022-29047- Updated
- 2026-11-02
EUVDEUVD-2022-1760 No score
Jenkins Pipeline: Shared Groovy Libraries Plugin 564.ve62a_4eb_b_e039 and earlier, except 2.21.3, 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 definition of a dynamically retrieved library in their pull request, even if the Pipeline is configured to not trust them.
- Record
EUVD-2022-1760- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hh6f-6fp5-gfpv
7.3
Untrusted users can modify some Pipeline libraries in Jenkins Pipeline: Deprecated Groovy Libraries Plugin
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.
- Record
GHSA-hh6f-6fp5-gfpv- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-863
- Updated
- 2026-11-02
OSVGHSA-hh6f-6fp5-gfpv
7.3
Untrusted users can modify some Pipeline libraries in Jenkins Pipeline: Deprecated Groovy Libraries Plugin
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.
- Record
GHSA-hh6f-6fp5-gfpv- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-863
- Updated
- 2026-11-02
OSVRHSA-2022:2205
7.3
Red Hat Security Advisory: OpenShift Container Platform 4.9.33 packages and security update
- Record
RHSA-2022:2205- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRHSA-2022:4909
7.3
Red Hat Security Advisory: OpenShift Container Platform 4.7.52 paackages and security update
- Record
RHSA-2022:4909- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRHSA-2023:0017
8.8
Red Hat Security Advisory: OpenShift Container Platform 4.8.56 packages and security update
- Record
RHSA-2023:0017- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2023:1064
9.9
Red Hat Security Advisory: OpenShift Developer Tools and Services for OCP 4.12 security update
- Record
RHSA-2023:1064- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.jenkins-ci.plugins.workflow:workflow-cps-global-libMaven |
before 2.21.3 | 2.21.3 |
org.jenkins-ci.plugins.workflow:workflow-cps-global-libMaven |
544.vff04fa68714d to 564.ve62a | 566.vd0a |
org.jenkins-ci.plugins.workflow:workflow-cps-global-libMaven |
before 2.21.3, plus listed versions 0.1-beta-50.1-beta-60.1-beta-70.1-beta-81.0 Show 45 moreShow less1.0-beta-11.11.101.10-beta-11.10.11.111.11-beta-11.11-beta-21.11-beta-31.11-beta-41.121.12-beta-11.12-beta-21.12-beta-31.131.141.14-beta-11.14.11.14.1-beta-11.14.21.151.15-beta-11.21.31.41.4.11.4.21.4.31.4.3-beta-11.51.61.6-alpha-11.71.7-alpha-11.81.91.9-beta-12.02.12.102.112.122.12.12.132.13.1 |
2.21.3 |
org.jenkins-ci.plugins.workflow:workflow-cps-global-libMaven |
544.vff04fa68714d up to 566.vd0a, plus listed versions 545.v7b28cce323cf548.v9085a486966a552.554.vdba55efb9e88552.vd9cc05b8a2e1561.va_ce0de3c2d69564.ve62a_4eb_b_e039 |
566.vd0a |
jenkins-2-pluginsRed Hat:openshift:4.9::el8 From an advisory covering 4 CVEs |
before 0:4.9.1651754460-1.el8 | 0:4.9.1651754460-1.el8 |
jenkins-2-pluginsRed Hat:openshift:4.7::el8 From an advisory covering 3 CVEs |
before 0:4.7.1652967082-1.el8 | 0:4.7.1652967082-1.el8 |
jenkinsRed Hat:openshift:4.8::el8 From an advisory covering 16 CVEs |
before 0:2.361.1.1672840472-1.el8 | 0:2.361.1.1672840472-1.el8 |
jenkins-2-pluginsRed Hat:openshift:4.8::el8 From an advisory covering 16 CVEs |
before 0:4.8.1672842762-1.el8 | 0:4.8.1672842762-1.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.12::el8 From an advisory covering 15 CVEs |
before 0:4.12.1675702407-1.el8 | 0:4.12.1675702407-1.el8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-29047 is a medium vulnerability (CVSS 5.3) in Jenkins Project Pipeline: Shared Groovy Libraries Plugin, published April 12, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.18%, the 67th percentile. Fixed in org.jenkins-ci.plugins.workflow:workflow-cps-global-lib 2.21.3.
References
jenkins.io/security/advisory/2022-04-12
nvd.nist.gov/vuln/detail/CVE-2022-29047
github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/97bf32458e60ad252cfe5e7949bacf04459cee64
github.com/jenkinsci/workflow-cps-global-lib-plugin/commit/bae59b46cb524549d7f346ba73d3161804c97331
github.com/advisories/GHSA-hh6f-6fp5-gfpv
access.redhat.com/errata/RHSA-2022:2205
Show 142 moreShow less
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2074847
bugzilla.redhat.com/show_bug.cgi?id=2074850
bugzilla.redhat.com/show_bug.cgi?id=2074851
bugzilla.redhat.com/show_bug.cgi?id=2074855
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_2205.json
access.redhat.com/security/cve/CVE-2022-29036
cve.org/CVERecord?id=CVE-2022-29036
nvd.nist.gov/vuln/detail/CVE-2022-29036
access.redhat.com/security/cve/CVE-2022-29041
cve.org/CVERecord?id=CVE-2022-29041
nvd.nist.gov/vuln/detail/CVE-2022-29041
access.redhat.com/security/cve/CVE-2022-29046
cve.org/CVERecord?id=CVE-2022-29046
nvd.nist.gov/vuln/detail/CVE-2022-29046
access.redhat.com/security/cve/CVE-2022-29047
cve.org/CVERecord?id=CVE-2022-29047
access.redhat.com/errata/RHSA-2022:4909
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_4909.json
access.redhat.com/errata/RHSA-2023:0017
bugzilla.redhat.com/show_bug.cgi?id=2103548
bugzilla.redhat.com/show_bug.cgi?id=2103551
bugzilla.redhat.com/show_bug.cgi?id=2114755
bugzilla.redhat.com/show_bug.cgi?id=2116840
bugzilla.redhat.com/show_bug.cgi?id=2116952
bugzilla.redhat.com/show_bug.cgi?id=2119642
bugzilla.redhat.com/show_bug.cgi?id=2119643
bugzilla.redhat.com/show_bug.cgi?id=2119644
bugzilla.redhat.com/show_bug.cgi?id=2119645
bugzilla.redhat.com/show_bug.cgi?id=2119646
bugzilla.redhat.com/show_bug.cgi?id=2119647
bugzilla.redhat.com/show_bug.cgi?id=2119653
bugzilla.redhat.com/show_bug.cgi?id=2119656
bugzilla.redhat.com/show_bug.cgi?id=2119657
bugzilla.redhat.com/show_bug.cgi?id=2119658
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_0017.json
access.redhat.com/security/cve/CVE-2022-2048
cve.org/CVERecord?id=CVE-2022-2048
nvd.nist.gov/vuln/detail/CVE-2022-2048
github.com/eclipse/jetty.project/security/advisories/GHSA-wgmr-mf83-7x4j
access.redhat.com/security/cve/CVE-2022-30945
cve.org/CVERecord?id=CVE-2022-30945
nvd.nist.gov/vuln/detail/CVE-2022-30945
jenkins.io/security/advisory/2022-05-17
access.redhat.com/security/cve/CVE-2022-30946
cve.org/CVERecord?id=CVE-2022-30946
nvd.nist.gov/vuln/detail/CVE-2022-30946
access.redhat.com/security/cve/CVE-2022-30948
cve.org/CVERecord?id=CVE-2022-30948
nvd.nist.gov/vuln/detail/CVE-2022-30948
access.redhat.com/security/cve/CVE-2022-30952
cve.org/CVERecord?id=CVE-2022-30952
nvd.nist.gov/vuln/detail/CVE-2022-30952
access.redhat.com/security/cve/CVE-2022-30953
cve.org/CVERecord?id=CVE-2022-30953
nvd.nist.gov/vuln/detail/CVE-2022-30953
access.redhat.com/security/cve/CVE-2022-30954
cve.org/CVERecord?id=CVE-2022-30954
nvd.nist.gov/vuln/detail/CVE-2022-30954
access.redhat.com/security/cve/CVE-2022-34174
cve.org/CVERecord?id=CVE-2022-34174
nvd.nist.gov/vuln/detail/CVE-2022-34174
jenkins.io/security/advisory/2022-06-22
access.redhat.com/security/cve/CVE-2022-34176
cve.org/CVERecord?id=CVE-2022-34176
nvd.nist.gov/vuln/detail/CVE-2022-34176
access.redhat.com/security/cve/CVE-2022-34177
cve.org/CVERecord?id=CVE-2022-34177
nvd.nist.gov/vuln/detail/CVE-2022-34177
access.redhat.com/security/cve/CVE-2022-36881
cve.org/CVERecord?id=CVE-2022-36881
nvd.nist.gov/vuln/detail/CVE-2022-36881
github.com/advisories/GHSA-cm7j-p8hc-97vj
jenkins.io/security/advisory/2022-07-27
access.redhat.com/security/cve/CVE-2022-36882
cve.org/CVERecord?id=CVE-2022-36882
nvd.nist.gov/vuln/detail/CVE-2022-36882
access.redhat.com/security/cve/CVE-2022-36883
cve.org/CVERecord?id=CVE-2022-36883
nvd.nist.gov/vuln/detail/CVE-2022-36883
access.redhat.com/security/cve/CVE-2022-36884
cve.org/CVERecord?id=CVE-2022-36884
nvd.nist.gov/vuln/detail/CVE-2022-36884
access.redhat.com/security/cve/CVE-2022-36885
cve.org/CVERecord?id=CVE-2022-36885
nvd.nist.gov/vuln/detail/CVE-2022-36885
access.redhat.com/errata/RHSA-2023:1064
bugzilla.redhat.com/show_bug.cgi?id=2135244
bugzilla.redhat.com/show_bug.cgi?id=2135247
bugzilla.redhat.com/show_bug.cgi?id=2136369
bugzilla.redhat.com/show_bug.cgi?id=2136370
bugzilla.redhat.com/show_bug.cgi?id=2136374
bugzilla.redhat.com/show_bug.cgi?id=2136379
bugzilla.redhat.com/show_bug.cgi?id=2136381
bugzilla.redhat.com/show_bug.cgi?id=2136382
bugzilla.redhat.com/show_bug.cgi?id=2136383
bugzilla.redhat.com/show_bug.cgi?id=2136386
bugzilla.redhat.com/show_bug.cgi?id=2136388
bugzilla.redhat.com/show_bug.cgi?id=2136391
bugzilla.redhat.com/show_bug.cgi?id=2145194
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1064.json
access.redhat.com/security/cve/CVE-2022-42003
cve.org/CVERecord?id=CVE-2022-42003
nvd.nist.gov/vuln/detail/CVE-2022-42003
access.redhat.com/security/cve/CVE-2022-42004
cve.org/CVERecord?id=CVE-2022-42004
nvd.nist.gov/vuln/detail/CVE-2022-42004
access.redhat.com/security/cve/CVE-2022-43401
cve.org/CVERecord?id=CVE-2022-43401
nvd.nist.gov/vuln/detail/CVE-2022-43401
jenkins.io/security/advisory/2022-10-19
access.redhat.com/security/cve/CVE-2022-43402
cve.org/CVERecord?id=CVE-2022-43402
nvd.nist.gov/vuln/detail/CVE-2022-43402
access.redhat.com/security/cve/CVE-2022-43403
cve.org/CVERecord?id=CVE-2022-43403
nvd.nist.gov/vuln/detail/CVE-2022-43403
access.redhat.com/security/cve/CVE-2022-43404
cve.org/CVERecord?id=CVE-2022-43404
nvd.nist.gov/vuln/detail/CVE-2022-43404
access.redhat.com/security/cve/CVE-2022-43405
cve.org/CVERecord?id=CVE-2022-43405
nvd.nist.gov/vuln/detail/CVE-2022-43405
access.redhat.com/security/cve/CVE-2022-43406
cve.org/CVERecord?id=CVE-2022-43406
nvd.nist.gov/vuln/detail/CVE-2022-43406
access.redhat.com/security/cve/CVE-2022-43407
cve.org/CVERecord?id=CVE-2022-43407
nvd.nist.gov/vuln/detail/CVE-2022-43407
access.redhat.com/security/cve/CVE-2022-43408
cve.org/CVERecord?id=CVE-2022-43408
nvd.nist.gov/vuln/detail/CVE-2022-43408
access.redhat.com/security/cve/CVE-2022-43409
cve.org/CVERecord?id=CVE-2022-43409
nvd.nist.gov/vuln/detail/CVE-2022-43409
access.redhat.com/security/cve/CVE-2022-43410
cve.org/CVERecord?id=CVE-2022-43410
nvd.nist.gov/vuln/detail/CVE-2022-43410
access.redhat.com/security/cve/CVE-2022-45047
cve.org/CVERecord?id=CVE-2022-45047
nvd.nist.gov/vuln/detail/CVE-2022-45047
mail-archive.com/[email protected]/msg39312.html
Left out here: 18 versions. The JSON record has them.