CVE-2022-41854 Stack Overflow in Snakeyaml
Attackers can cause a denial of service by supplying malicious YAML content that triggers a stack overflow in the Snakeyaml parser.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-41854?
CVE-2022-41854 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 11 Nov 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Those 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. This effect may support a denial of service attack.
Which versions are affected by CVE-2022-41854?
2 open source packages ship an affected version, including org.yaml:snakeyaml. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.yaml:snakeyaml Maven | All versions | 1.32 |
org.yaml:snakeyaml Maven | All versions | 1.32 |
Products include Fedoraproject Fedora, Snakeyaml Project Snakeyaml.
How do I fix CVE-2022-41854?
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-41854 being exploited?
There is no known exploitation of CVE-2022-41854 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as CLEANSTART-2026-KP76579, CLEANSTART-2026-RZ99340, CLEANSTART-2026-YW99186, DEBIAN-CVE-2022-41854, ECHO-774e-cc38-09d6, GHSA-w37g-rhq8-7m4j and 2 more.