Every CVE Search/ Get API key

CVE-2022-29047

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

5.3 MediumFix available

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

1.18%Up 0.3 points since Apr 13, 2022
90%50%10%1%

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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 2.0
5.0 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib
Maven
before 2.21.3
2.21.3
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib
Maven
544.vff04fa68714d to 564.ve62a
566.vd0a
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib
Maven
before 2.21.3, plus listed versions
0.1-beta-50.1-beta-60.1-beta-70.1-beta-81.0
Show 45 moreShow less
1.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-lib
Maven
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-plugins
Red 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-plugins
Red Hat:openshift:4.7::el8
From an advisory covering 3 CVEs
before 0:4.7.1652967082-1.el8
0:4.7.1652967082-1.el8
jenkins
Red 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-plugins
Red 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-plugins
Red 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

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 142 moreShow less
This page doesn't list everything

Left out here: 18 versions. The JSON record has them.

MoveEnter Open