Miggo Logo

CVE-2020-2109: Improper Input Validation in Jenkins Pipeline: Groovy Plugin

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.63854%
Published
5/24/2022
Updated
12/6/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.plugins.workflow:workflow-cpsmaven<= 2.782.79

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

S*n**ox prot**tion in J*nkins Pip*lin*: *roovy Plu*in *.** *n* **rli*r **n ** *ir*umv*nt** t*rou** ****ult p*r*m*t*r *xpr*ssions in *PS-tr*ns*orm** m*t*o*s.

Reasoning

T** vuln*r**ility st*ms *rom improp*r **n*lin* o* ****ult p*r*m*t*r *xpr*ssions in *PS-tr*ns*orm** m*t*o*s. T** *ommit ******* intro*u*** t** `Initi*l*xpr*ssion*xp*n**r` to **n*r*t* ov*rlo**** m*t*o*s *n* `pro**ss` initi*l p*r*m*t*r *xpr*ssions. ***o