CVE-2019-10431: Improper Control of Generation of Code in Jenkins Script Security Plugin
10
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.60346%
CWE
Published
5/24/2022
Updated
10/26/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.plugins:script-security | maven | <= 1.64 | 1.65 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows added tests blocking 'x = Jenkins.getInstance()' in constructor parameters when calling super()
, and the patch upgraded groovy-sandbox
to handle these expressions. The vulnerability specifically involved improper handling of default parameter initializers in constructors with super
calls, which would execute outside sandbox constraints. The test case demonstrates this bypass vector, and the CWE-94
classification confirms it's a code injection via uncontrolled code generation.