# CVE-2023-28118: kaml has potential denial of service while parsing input with anchors and aliases

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 63% of CVEs (2026-12-01)
- Published: 2023-03-20T12:39:42.075Z
- Modified: 2026-06-17T05:46:54.680Z
- Also known as: GHSA-c24f-2j3g-rg48
- Weaknesses: CWE-776
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- charleskorn kaml: < 0.53.0
- com.charleskorn.kaml:kaml (Maven): before 0.53.0
- kaml_project kaml: before 0.53.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/charleskorn/kaml/security/advisories/GHSA-c24f-2j3g-rg48> (vendor-advisory, web)
- <https://github.com/charleskorn/kaml/commit/5f82a2d7e00bfc307afca05d1dc4d7c50593531a> (patch, web)
- <https://github.com/charleskorn/kaml/releases/tag/0.53.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-28118> (advisory)
- <https://github.com/charleskorn/kaml> (package)

## Sources

- CVE List: [CVE-2023-28118](https://www.cve.org/CVERecord?id=CVE-2023-28118), CVE Terms of Use, modified 2025-02-25
- GitHub Advisory Database: [GHSA-c24f-2j3g-rg48](https://github.com/advisories/GHSA-c24f-2j3g-rg48), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-28118](https://nvd.nist.gov/vuln/detail/CVE-2023-28118), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-28118 · Whole record: https://cve.day/CVE-2023-28118.json · Rebuilt by cve.day 2026-11-25T22:58:22.533Z
