CVE-2019-1003006: Jenkins Groovy Plugin sandbox bypass vulnerability
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.19009%
CWE
Published
5/13/2022
Updated
12/30/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.plugins:groovy | maven | <= 2.0 | 2.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the script validation
endpoint in StringScriptSource.java
using an insecure Groovy compiler configuration
. The commit 212e048
shows the fix involved adding GroovySandbox.createSecureCompilerConfiguration()
to the GroovyShell
instantiation in doCheckScript
. This method was vulnerable because it allowed parsing user-supplied Groovy scripts with dangerous AST annotations enabled, which could execute arbitrary code. The test cases added in the commit verify blocking of @ASTTest
and @Grab
annotations, confirming this was the attack vector.