CVE-2020-2109: Improper Input Validation in Jenkins Pipeline: Groovy Plugin
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.63854%
CWE
Published
5/24/2022
Updated
12/6/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.workflow:workflow-cps | maven | <= 2.78 | 2.79 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of default parameter expressions in CPS-transformed methods. The commit 41cb4e0 introduced the InitialExpressionExpander
to generate overloaded methods and process
initial parameter expressions. Before this fix, these expressions were not subjected to CPS transformation and sandbox checks. The visitMethod()
function in CpsTransformer.java
was responsible for method transformation but lacked this critical expansion step, allowing sandbox bypass via default parameter values. The added test cases in CpsTransformer2Test.java
and SandboxInvoker2Test.java
confirm that default parameter expressions were previously not properly intercepted.