MediumGHSA-c4r9-r8fh-9vj2CVE-2022-38749
snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write
Published 6 Sept 2022 · Updated 10 Sept 2026
Is your project on an affected org.yaml:snakeyaml?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
org.yaml:snakeyamlMaven
- Affected
- <1.31
- Fixed in
- 1.31
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.yaml:snakeyaml -DdepVersion=1.31 -DforceVersion=truebe.cylab:snakeyamlMaven
- Affected
- 1.25.1
- Fixed in
- No fix released
- Affected
- 1.0.0
- Fixed in
- No fix released
- Affected
- 0.17.0
- Fixed in
- No fix released
- Affected
- <=0.18.0
- Fixed in
- No fix released
- Affected
- <=1.0.6
- Fixed in
- No fix released
- Affected
- <=1.18.2
- Fixed in
- No fix released
Details
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 stackoverflow.
Is GHSA-c4r9-r8fh-9vj2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.yaml:snakeyaml, and gives you the command that fixes it.
More advisories for org.yaml:snakeyaml
- HighCVE-2022-1471SnakeYaml Constructor Deserialization Remote Code Execution · 12 Dec 2022
- MediumCVE-2022-41854Snakeyaml vulnerable to Stack overflow leading to denial of service · 11 Nov 2022
- MediumCVE-2022-38751snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write · 6 Sept 2022
- MediumCVE-2022-38752snakeYAML before 1.32 vulnerable to Denial of Service due to Out-of-bounds Write · 6 Sept 2022
- MediumCVE-2022-38750snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write · 6 Sept 2022
- HighCVE-2022-25857Uncontrolled Resource Consumption in snakeyaml · 31 Aug 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-38749
- Linkarxiv.org/pdf/2306.05534.pdf
- Packagebitbucket.org/snakeyaml/snakeyaml
- Linkbitbucket.org/snakeyaml/snakeyaml/issues/525/got-stackoverflowerror-for-many-open
- Linkbugs.chromium.org/p/oss-fuzz/issues/detail?id=47024
- Linklists.debian.org/debian-lts-announce/2022/10/msg00001.html
- Linksecurity.gentoo.org/glsa/202305-28
- Linksecurity.netapp.com/advisory/ntap-20240315-0010
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.