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

Critical 9.9 Published Updated

Attackers with specific permissions can bypass sandbox restrictions 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-43406?

CVE-2022-43406 is a critical vulnerability in Jenkins Pipeline: Deprecated 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: Deprecated Groovy Libraries Plugin 583.vf3b_454e43966 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-43406?

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-43406?

Upgrade io.jenkins.plugins:pipeline-groovy-lib to 613.v9c41a_160233f or later.

Is CVE-2022-43406 being exploited?

There is no known exploitation of CVE-2022-43406 in the wild and no public exploit code.

Sources

Also known as GHSA-7qw2-h9gj-hcvh.

Is CVE-2022-43406 in your software?

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

Check your SBOMs for free