Medium

snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write

  • Disclosed: 06.09.2022
  • Updated: 11.10.2026 13:19

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.yaml:snakeyaml < 1.31 1.31

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-121, CWE-787
Platform
Java / Kotlin (Maven)
Package
org.yaml:snakeyaml
Disclosed
06.09.2022
Updated
11.10.2026 13:19

Sources and licenses

OSV / GitHub Advisory Database - GHSA-98wm-3w3q-mw94 - CC BY 4.0

Vulnerability history: org.yaml:snakeyaml

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
06.2021 12.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 3
  • Medium 5

Disclosures per year

  1. 2021: 1
  2. 2022: 7
  3. 2023: 0
  4. 2024: 0
  5. 2025: 0
  6. 2026: 0
  1. snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write this entry
    Medium · 6.5 CVE-2022-38751 < 1.31 1.31
  2. High · 7.5 CVE-2022-25857 < 1.31 1.31
  3. High · 7.5 CVE-2017-18640 < 1.26 1.26

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.