CVE-2019-10431 Improper Control of Generation of Code in Jenkins Script Security Plugin
Attackers can bypass the sandbox to execute arbitrary code in Jenkins scripts, requiring an upgrade of the Script Security Plugin.
- 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-2019-10431?
CVE-2019-10431 is a critical code injection vulnerability in Jenkins Script Security Plugin, published on 1 Oct 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A sandbox bypass vulnerability in Jenkins Script Security Plugin 1.64 and earlier related to the handling of default parameter expressions in constructors allowed attackers to execute arbitrary code in sandboxed scripts.
Weakness: CWE-94
Which versions are affected by CVE-2019-10431?
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 | 1.65 |
org.jenkins-ci.plugins:script-security Maven | All versions | 1.65 |
Products include Jenkins Script Security.
How do I fix CVE-2019-10431?
Upgrade org.jenkins-ci.plugins:script-security to 1.65 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2019-10431 being exploited?
There is no known exploitation of CVE-2019-10431 in the wild and no public exploit code.
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-72gx-qq2m-6xr2.