CVE-2022-43405 Sandbox bypass vulnerability in Jenkins Pipeline: Groovy Libraries Plugin and Pipeline: Deprecated Groovy Libraries Plugin

Critical 9.9 Published Updated

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.

PackageAffectedFixed in
io.jenkins.plugins:pipeline-groovy-lib MavenAll versions613.v9c41a_160233f
io.jenkins.plugins:pipeline-groovy-lib MavenAll versions613.v9c41a_160233f
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib MavenAll versions588.v576c103a_ff86
org.jenkins-ci.plugins.workflow:workflow-cps-global-lib MavenAll versions588.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.

Sources

Also known as GHSA-4hjj-9gp7-4frg.

Is CVE-2022-43405 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free