CVE-2022-43404 Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin

Critical 9.9 Published Updated

Attackers with script 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-43404?

CVE-2022-43404 is a critical code injection vulnerability in Jenkins Script Security 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 involving crafted constructor bodies and calls to sandbox-generated synthetic constructors in Jenkins Script Security Plugin 1183.v774b_0b_0a_a_451 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.

Which versions are affected by CVE-2022-43404?

4 open source packages ship an affected version, including org.jenkins-ci.plugins:script-security and org.jenkins-ci.plugins.workflow:workflow-cps. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.plugins:script-security MavenAll versions1184.v85d16b_d851b_3
org.jenkins-ci.plugins:script-security MavenAll versions1184.v85d16b_d851b_3
org.jenkins-ci.plugins.workflow:workflow-cps MavenAll versions2803.v1a_f77ffcc773
org.jenkins-ci.plugins.workflow:workflow-cps MavenAll versions2803.v1a_f77ffcc773

Products include Jenkins Script Security.

How do I fix CVE-2022-43404?

Upgrade org.jenkins-ci.plugins:script-security to 1184.v85d16b_d851b_3 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-43404 being exploited?

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

Sources

Also known as GHSA-27rf-8mjp-r363.

Is CVE-2022-43404 in your software?

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

Check your SBOMs for free