CVE-2022-25181: High severity jenkins pipeline vulnerability

Published Feb 15, 2022
·
Updated

A flaw was found in Jenkins. The Pipeline: Shared Groovy Libraries Plugin uses the same workspace directory for all checkouts of Pipeline libraries with the same name, regardless of the SCM used and the source of the library configuration. This flaw allows attackers with item/configure permission to execute arbitrary code in the context of the Jenkins controller, JVM, through crafted SCM contents if a global Pipeline library already exists.

Other sources

A sandbox bypass vulnerability in Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM through crafted SCM contents, if a global Pipeline library already exists.

Jenkins Pipeline: Deprecated Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the same workspace directory for all checkouts of Pipeline libraries with the same name regardless of the SCM being used and the source of the library configuration.

This allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM through crafted SCM contents, if a global Pipeline library already exists.

Pipeline: Deprecated Groovy Libraries Plugin 561.vace0de3c2d69 uses distinct checkout directories per SCM for Pipeline libraries.

Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the same workspace directory for all checkouts of Pipeline libraries with the same name regardless of the SCM being used and the source of the library configuration. This allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM through crafted SCM contents, if a global Pipeline library already exists.

References:

https://www.jenkins.io/security/advisory/2022-02-15/

Red Hat

Affected Software

8 affected componentsFixes available
redhat/jenkins<2-plugins-0:3.11.1650371376-1.el7
2-plugins-0:3.11.1650371376-1.el7
redhat/jenkins<2-plugins-0:4.10.1647505461-1.el8
2-plugins-0:4.10.1647505461-1.el8
redhat/jenkins<2-plugins-0:4.6.1650364520-1.el8
2-plugins-0:4.6.1650364520-1.el8
redhat/jenkins<2-plugins-0:4.7.1648800585-1.el8
2-plugins-0:4.7.1648800585-1.el8
redhat/jenkins<2-plugins-0:4.8.1646993358-1.el8
2-plugins-0:4.8.1646993358-1.el8
redhat/jenkins<2-plugins-0:4.9.1647580879-1.el8
2-plugins-0:4.9.1647580879-1.el8
maven/org.jenkins-ci.plugins.workflow:workflow-cps-global-lib<=552.vd9cc05b8a2e1
561.va_ce0de3c2d69
Jenkins Pipeline\<=552.vd9cc05b8a2e1

Event History

Feb 15, 2022
CVE Published
12:00 AM
CVE Published
via MITRE·04:11 PM
Data Sourced
via MITRE·04:11 PM
Description
Feb 16, 2022
Advisory Published
12:01 AM
Feb 17, 2022
Data Sourced
via Red Hat·04:29 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-25181?

CVE-2022-25181 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2022-25181?

To fix CVE-2022-25181, you should upgrade to a version of the Jenkins Pipeline: Shared Groovy Libraries Plugin that is not affected, specifically versions later than 552.vd9cc05b8a2e1.

3

What applications are affected by CVE-2022-25181?

CVE-2022-25181 affects Jenkins and specifically the Pipeline: Shared Groovy Libraries Plugin.

4

What type of vulnerability is CVE-2022-25181?

CVE-2022-25181 is a directory traversal vulnerability related to workspace directory usage in Jenkins.

5

Can attackers exploit CVE-2022-25181 remotely?

CVE-2022-25181 requires attackers to have item/configure permissions, indicating a need for authenticated access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203