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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

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=true
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
All 8 advisories for org.yaml:snakeyaml

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.