Miggo Logo

CVE-2020-2180:
RCE vulnerability in Jenkins AWS SAM Plugin

8.8

CVSS Score
3.0

Basic Information

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

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
io.jenkins.plugins:aws-sammaven<= 1.2.21.2.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from using snakeyaml's unsafe Constructor class which permits arbitrary type instantiation. The commit explicitly changes the base class from Constructor to SafeConstructor and upgrades snakeyaml to 1.26, which restricts deserialization to safe types. The IntrinsicsYamlConstructor's inheritance hierarchy before patching directly enabled the exploit vector.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*WS S*M Plu*in *.*.* *n* **rli*r *o*s not *on*i*ur* its Y*ML p*rs*r to pr*v*nt t** inst*nti*tion o* *r*itr*ry typ*s. T*is r*sults in * r*mot* *o** *x**ution (R**) vuln*r**ility *xploit**l* *y us*rs **l* to *on*i*ur* * jo* or *ontrol t** *ont*nts o* *

Reasoning

T** vuln*r**ility st*ms *rom usin* sn*k*y*ml's uns*** `*onstru*tor` *l*ss w*i** p*rmits *r*itr*ry typ* inst*nti*tion. T** *ommit *xpli*itly ***n**s t** **s* *l*ss *rom `*onstru*tor` to `S****onstru*tor` *n* up*r***s sn*k*y*ml to *.**, w*i** r*stri*ts