7.5high
kaml has potential denial of service while parsing input with anchors and aliases
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.97% (higher than 63% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-c24f-2j3g-rg48
Description
kaml provides YAML support for kotlinx.serialization. Prior to version 0.53.0, applications that use kaml to parse untrusted input containing anchors and aliases may consume excessive memory and crash. Version 0.53.0 and later default to refusing to parse YAML documents containing anchors and aliases. There are no known workarounds.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| charleskorn kaml | < 0.53.0 | CVE List |
| com.charleskorn.kaml:kaml (Maven) | before 0.53.0 | GitHub Advisory Database |
| kaml_project kaml | before 0.53.0 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
kaml provides YAML support for kotlinx.serialization. Prior to version 0.53.0, applications that use kaml to parse untrusted input containing anchors and aliases may consume excessive memory and crash. Version 0.53.0 and later default to refusing to parse YAML documents containing anchors and aliases. There are no known workarounds.
GitHub Advisory Database
Impact
Applications that use kaml to parse untrusted input containing anchors and aliases may consume excessive memory and crash.
Patches
Version 0.53.0 and later default to refusing to parse YAML documents containing anchors and aliases.
Workarounds
None.
References
Wikipedia has an explanation of this class of vulnerability: billion laughs attack
Acknowledgements
Thank you to @gdude2002 for reporting this issue.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-28118 changed 2025-02-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c24f-2j3g-rg48 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-28118 changed 2026-06-17 | Public domain |