CVE-2022-25183: High severity jenkins pipeline vulnerability
A flaw was found in Jenkins. The Pipeline: Shared Groovy Libraries plugin uses the names of Pipeline libraries to create cache directories without any sanitization. This flaw allows attackers with item/configure permission to execute arbitrary code in the context of the Jenkins controller JVM, using specially crafted library names if a global Pipeline library configured to use caching already exists.
Other sources
Jenkins Pipeline: Deprecated Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the names of Pipeline libraries to create cache directories without any sanitization.
This allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM using specially crafted library names if a global Pipeline library configured to use caching already exists.
Pipeline: Deprecated Groovy Libraries Plugin 561.vace0de3c2d69 sanitizes the names of Pipeline libraries when creating library cache directories.
Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the names of Pipeline libraries to create cache directories without any sanitization, allowing attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM using specially crafted library names if a global Pipeline library configured to use caching already exists.
Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier uses the names of Pipeline libraries to create cache directories without any sanitization. This allows attackers with Item/Configure permission to execute arbitrary code in the context of the Jenkins controller JVM using specially crafted library names if a global Pipeline library configured to use caching already exists.
References:
https://www.jenkins.io/security/advisory/2022-02-15/
— Red Hat
Affected Software
Remediation
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2022-25183?
CVE-2022-25183 is considered a high severity vulnerability due to the potential for arbitrary code execution in the Jenkins controller JVM.
How do I fix CVE-2022-25183?
To mitigate CVE-2022-25183, update the Pipeline: Shared Groovy Libraries plugin to a version that incorporates security enhancements.
Which versions of Jenkins are affected by CVE-2022-25183?
CVE-2022-25183 affects multiple versions of Jenkins, particularly those prior to the patched versions provided in the Red Hat packages.
Can CVE-2022-25183 be exploited remotely?
Yes, CVE-2022-25183 can be exploited by attackers with item/configure permissions, allowing remote code execution.
What types of users are affected by CVE-2022-25183?
Users with item/configure permissions in Jenkins are at risk due to the vulnerability presented in CVE-2022-25183.