CVE-2020-2279: Sandbox bypass vulnerability in Jenkins Script Security Plugin
10
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5167%
CWE
Published
5/24/2022
Updated
12/14/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.67, < 1.75 | 1.75 |
| org.jenkins-ci.plugins:script-security | maven | < 1.66.5 | 1.66.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper sandbox enforcement when handling return values from sandboxed scripts. The commit diff shows an upgrade to groovy-sandbox 1.27, which introduced proper interception of method calls on sandbox-defined objects. The added test case 'unsafeReturnValue' demonstrates that prior versions allowed invoking methods (like toString()) on objects created in sandboxed scripts without security checks. The core issue was in the interceptor logic (likely in SandboxInterceptor) that failed to apply sandbox protections to these cross-context method calls. The vulnerability is tied to the plugin's dependency on an outdated groovy-sandbox version (1.26), which lacked proper interception for return value processing.