CVE-2022-38752 DoS in SnakeYAML
Attackers can cause a stack overflow and crash the application by supplying malicious YAML content to the SnakeYAML parser.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-38752?
CVE-2022-38752 is a medium-severity denial of service vulnerability in SnakeYAML, published on 5 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Using snakeYAML to parse untrusted YAML files may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stack-overflow.
Which versions are affected by CVE-2022-38752?
2 open source packages ship an affected version, including org.yaml:snakeyaml. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.yaml:snakeyaml Maven | All versions | 1.32 |
org.yaml:snakeyaml Maven | All versions | 1.32 |
Products include Snakeyaml Project Snakeyaml.
How do I fix CVE-2022-38752?
Upgrade org.yaml:snakeyaml to 1.32 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-38752 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-38752 exists.
Other vulnerabilities in SnakeYAML
Sources
Also known as CLEANSTART-2026-EF95346, CLEANSTART-2026-HD46315, CLEANSTART-2026-UI28748, CLSA-2026-1774398089, DEBIAN-CVE-2022-38752, ECHO-c0ec-d93c-a0a9 and 2 more.