CVE-2023-24422 Sandbox bypass in Jenkins Script Security Plugin
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.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:script-security Maven | All versions | 1229.v4880b |
org.jenkins-ci.plugins:script-security Maven | All versions | 1229.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.
Other vulnerabilities in Jenkins Script Security Plugin
- CVE-2019-1003029 Jenkins Script Security Plugin Sandbox Bypass
- CVE-2022-43401 Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin
- CVE-2022-43403 Jenkins Script Security Plugin sandbox bypass vulnerability
- CVE-2022-43404 Sandbox bypass vulnerabilities in Jenkins Script Security Plugin and in Pipeline: Groovy Plugin
- CVE-2020-2279 Sandbox bypass vulnerability in Jenkins Script Security Plugin
Sources
Also known as GHSA-76qj-9gwh-pvv3.