CVE-2019-1003041: Sandbox bypass vulnerability in Jenkins Pipeline: Groovy Plugin
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.83878%
CWE
Published
5/13/2022
Updated
12/18/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.plugins.workflow:workflow-cps | maven | < 2.65 | 2.65 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient sandbox validation
during type coercion operations. The pre-patch version of CpsWhitelist.java
's permitsStaticMethod
explicitly allowed ScriptBytecodeAdapter.asType()
calls (used for Groovy type casting) without performing security checks. This let attackers bypass sandbox restrictions by using Groovy's casting syntax (e.g., 'X as Y' or 'Y x = [...]') to invoke dangerous constructors. The patch added Checker.preCheckedCast()
validation
to enforce security restrictions during these operations, confirming this was the vulnerable code path.