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
CVE ID
GHSA ID
EPSS Score
0.2584%
CWE
Published
9/6/2022
Updated
3/15/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.yaml:snakeyaml | maven | < 1.31 | 1.31 |
Vulnerability Intelligence
Miggo AI
Root 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.