CVE-2024-34145 Jenkins Script Security Plugin sandbox bypass vulnerability

High 8.8 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-2024-34145?

CVE-2024-34145 is a high-severity vulnerability in Jenkins Script Security Plugin, published on 2 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A sandbox bypass vulnerability involving sandbox-defined classes that shadow specific non-sandbox-defined classes in Jenkins Script Security Plugin 1335.vf07d9ce377a_e 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-290

Which versions are affected by CVE-2024-34145?

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 versions1336.vf33a
org.jenkins-ci.plugins:script-security MavenAll versions1336.vf33a

Products include Jenkins Script Security.

How do I fix CVE-2024-34145?

Upgrade org.jenkins-ci.plugins:script-security to 1336.vf33a or later.

Is CVE-2024-34145 being exploited?

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

Sources

Also known as GHSA-2g4q-9vm9-9fw4.

Is CVE-2024-34145 in your software?

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

Check your SBOMs for free