CVE-2022-41854
Stack Overflow in Snakeyaml
Also known as GHSA-w37g-rhq8-7m4j
Mitigation
- Upgrade org.yaml:snakeyaml to 1.32 or later.
Who should check
- Projects that depend on Maven package org.yaml:snakeyaml (< 1.32)
- Anyone running SnakeYaml >= unspecified, < 1.32
Vulnerability facts
- Affected
- org.yaml:snakeyaml < 1.32
- Fixed in
- 1.32
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, login needed
- CVSS
- 5.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 2.22% chance of exploitation in 30 days (percentile 83, 2026-11-26)
- CWE
- CWE-121
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.yaml:snakeyaml | < 1.32 | 1.32 | osv |
| SnakeYaml | >= unspecified, < 1.32 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-41854. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-41854.md Affected: org.yaml:snakeyaml < 1.32 Fixed in: 1.32 Steps: 1. Search this machine and project for org.yaml:snakeyaml (Maven), SnakeYaml: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7MKE4XWRXTH32757H7QJU4ACS67DYDCR/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KSPAJ5Y45A4ZDION2KN5RDWLHK4XKY2J/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DDXEXXWAZGF5AVHIPGFPXIWL6TSMKJE/
- https://nvd.nist.gov/vuln/detail/CVE-2022-41854
Exploits and PoCs
Other
- https://security.netapp.com/advisory/ntap-20240315-0009/
- https://security.netapp.com/advisory/ntap-20240621-0006/
- https://bitbucket.org/snakeyaml/snakeyaml
- https://bitbucket.org/snakeyaml/snakeyaml/commits/e230a1758842beec93d28eddfde568c21774780a
- https://bitbucket.org/snakeyaml/snakeyaml/issues/531
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DDXEXXWAZGF5AVHIPGFPXIWL6TSMKJE
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7MKE4XWRXTH32757H7QJU4ACS67DYDCR
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KSPAJ5Y45A4ZDION2KN5RDWLHK4XKY2J
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DDXEXXWAZGF5AVHIPGFPXIWL6TSMKJE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7MKE4XWRXTH32757H7QJU4ACS67DYDCR
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KSPAJ5Y45A4ZDION2KN5RDWLHK4XKY2J
- https://security.netapp.com/advisory/ntap-20240315-0009
- https://security.netapp.com/advisory/ntap-20240621-0006
FAQ
Is CVE-2022-41854 being exploited?
There is no confirmed exploitation: CVE-2022-41854 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-41854?
Medium: CVSS 5.8 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2022-41854?
org.yaml:snakeyaml < 1.32.
Is there a fix for CVE-2022-41854?
Yes. Fixed in 1.32. Upgrade org.yaml:snakeyaml to 1.32 or later.
How do I check if I'm affected by CVE-2022-41854?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.