CVE-2020-2110: Improper Input Validation in Jenkins Script Security Plugin
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.79061%
CWE
Published
5/24/2022
Updated
12/13/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:script-security | maven | <= 1.69 | 1.70 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from incomplete AST annotation validation during script compilation. The commit diff shows critical additions to RejectASTTransformsCustomizer where super.visitImports() and super.visitAnnotations() calls were added to ensure proper traversal of nested AST nodes. This indicates the original implementation failed to: 1) Check for AST transforms in import statements (e.g., '@Grab' in 'import @Grab com.example'), and 2) Validate annotations nested within other annotations. The test cases added in SandboxInterceptorTest.java specifically target these scenarios, confirming these were the vulnerable pathways.