CVE-2022-43402: Critical severity Jenkins Pipeline\ vulnerability
A sandbox bypass vulnerability involving various casts performed implicitly by the Groovy language runtime in Jenkins Pipeline: Groovy Plugin 2802.v5ea628154bc2 and earlier allows attackers with permission to define and run sandboxed scripts, including Pipelines, to bypass the sandbox protection and execute arbitrary code in the context of the Jenkins controller JVM.
Other sources
A sandbox bypass vulnerability was found in several Jenkins plugins. This could allow an authenticated attacker to execute arbitrary code within the Jenkins JVM controller. Exploitation could be achieved by crafting untrusted libraries or pipelines, compromising the integrity, availability, and confidentiality of Jenkins.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 2-plugins-0:4.11.1683009941-1.el8 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 2-plugins-0:4.12.1675702407-1.el8 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 2-plugins-0:4.10.1675144701-1.el8 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 2-plugins-0:4.9.1675668922-1.el8 - Upgrade
Upgrade
maven/org.jenkins-ci.plugins.workflow:workflow-cpsto a version that resolves this vulnerability.Fixed in 2803.v1a_f77ffcc773 - Upgrade
Upgrade
redhat/Pipeline Groovy Pluginto a version that resolves this vulnerability.Fixed in 2803.
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2022-43402?
CVE-2022-43402 has been categorized as a critical vulnerability allowing sandbox bypass in Jenkins.
How do I fix CVE-2022-43402?
To mitigate CVE-2022-43402, upgrade to Jenkins Pipeline: Groovy Plugin version 2803.v1a_f77ffcc773 or later.
What does CVE-2022-43402 affect?
CVE-2022-43402 affects Jenkins users who utilize the Groovy language runtime in sandboxed scripts, specifically in versions prior to 2803.
Who can exploit CVE-2022-43402?
Attackers with permission to define and run sandboxed scripts in Jenkins are able to exploit CVE-2022-43402.
What is the main issue with CVE-2022-43402?
The main issue with CVE-2022-43402 is that it allows attackers to bypass sandbox protection, compromising script security in Jenkins.