CVE-2022-43405 Sandbox bypass vulnerability in Jenkins Pipeline: Groovy Libraries Plugin and Pipeline: Deprecated Groovy Libraries Plugin
Attackers with library definition permissions can bypass the Groovy sandbox to execute arbitrary code on the Jenkins controller.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-43405?
CVE-2022-43405 is a critical vulnerability in Jenkins Pipeline: Groovy Libraries Plugin, published on 19 Oct 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A sandbox bypass vulnerability in Jenkins Pipeline: Groovy Libraries Plugin 612.v84da_9c54906d and earlier allows attackers with permission to define untrusted Pipeline libraries and 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.
Which versions are affected by CVE-2022-43405?
4 open source packages ship an affected version, including io.jenkins.plugins:pipeline-groovy-lib and org.jenkins-ci.plugins.workflow:workflow-cps-global-lib. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:pipeline-groovy-lib Maven | All versions | 613.v9c41a_160233f |
io.jenkins.plugins:pipeline-groovy-lib Maven | All versions | 613.v9c41a_160233f |
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib Maven | All versions | 588.v576c103a_ff86 |
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib Maven | All versions | 588.v576c103a_ff86 |
Products include Jenkins Groovy Libraries.
How do I fix CVE-2022-43405?
Upgrade io.jenkins.plugins:pipeline-groovy-lib to 613.v9c41a_160233f or later.
Is CVE-2022-43405 being exploited?
There is no known exploitation of CVE-2022-43405 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Pipeline: Groovy Libraries Plugin
Sources
Also known as GHSA-4hjj-9gp7-4frg.