CVE-2023-24422 Sandbox bypass in Jenkins Script Security Plugin

High 8.8 Published Updated

Attackers with script definition 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
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-24422?

CVE-2023-24422 is a high-severity code injection vulnerability in Jenkins Script Security Plugin, published on 24 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A sandbox bypass vulnerability involving map constructors in Jenkins Script Security Plugin 1228.vd93135a_2fb_25 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.

Weakness: CWE-78

Which versions are affected by CVE-2023-24422?

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

PackageAffectedFixed in
org.jenkins-ci.plugins:script-security MavenAll versions1229.v4880b
org.jenkins-ci.plugins:script-security MavenAll versions1229.v4880b

Products include Jenkins Script Security.

How do I fix CVE-2023-24422?

Upgrade org.jenkins-ci.plugins:script-security to 1229.v4880b or later.

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

Is CVE-2023-24422 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-76qj-9gwh-pvv3.

Is CVE-2023-24422 in your software?

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

Check your SBOMs for free