Miggo Logo

CVE-2022-38750: snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write

5.5

CVSS Score
3.1

Basic Information

EPSS Score
0.2584%
Published
9/6/2022
Updated
3/15/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.yaml:snakeyamlmaven< 1.311.31

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability manifests in object construction during YAML parsing. The Bitbucket issue's stack trace explicitly shows the crash occurring in BaseConstructor.constructObject, which is responsible for recursively building Java objects from YAML nodes. Without proper recursion limits (added in 1.31), malicious nested structures would cause stack exhaustion. This matches the CWE-121 description of stack-based overflow through uncontrolled recursion in object construction.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Usin* sn*k*Y*ML to p*rs* untrust** Y*ML *il*s m*y ** vuln*r**l* to **ni*l o* S*rvi** *tt**ks (*OS). I* t** p*rs*r is runnin* on us*r suppli** input, *n *tt**k*r m*y supply *ont*nt t**t **us*s t** p*rs*r to *r*s* *y st**kov*r*low.

Reasoning

T** vuln*r**ility m*ni**sts in o*j**t *onstru*tion *urin* Y*ML p*rsin*. T** *it*u*k*t issu*'s st**k tr*** *xpli*itly s*ows t** *r*s* o**urrin* in `**s**onstru*tor.*onstru*tO*j**t`, w*i** is r*sponsi*l* *or r**ursiv*ly *uil*in* J*v* o*j**ts *rom Y*ML