{"id":"CVE-2023-28118","published":"2023-03-20T12:39:42Z","modified":"2025-02-25T14:52:56Z","title":"kaml has potential denial of service while parsing input with anchors and aliases","vendor":"charleskorn","product":"kaml","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01118,"percentile":0.65773,"provenance":"source"},"cwes":[{"id":"CWE-776","name":"Improper Restriction of Recursive Entity References in DTDs"}],"references":[{"url":"https://github.com/charleskorn/kaml/security/advisories/GHSA-c24f-2j3g-rg48","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/charleskorn/kaml/commit/5f82a2d7e00bfc307afca05d1dc4d7c50593531a","tags":["x_refsource_MISC"]},{"url":"https://github.com/charleskorn/kaml/releases/tag/0.53.0","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":13.15},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"charleskorn","affectedVersions":[{"vendor":"charleskorn","product":"kaml","versions":["< 0.53.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-25T14:30:26.475655Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.charleskorn.kaml:kaml","vulnerableRanges":["<0.53.0"],"patched":["0.53.0"],"from":["GHSA-c24f-2j3g-rg48"],"provenance":"source"}],"summary":{"text":"The kaml library, a YAML support package for kotlinx.serialization by charleskorn, contains a flaw in its input parsing that allows anchors and aliases to be expanded excessively. An attacker who can supply YAML documents to an application using kaml before version 0.53.0 can trigger excessive memory consumption and a crash by sending input containing anchors and aliases, requiring only network access to the application with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:05Z"},"euvd":{"id":"EUVD-2023-0975","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-charleskorn-kaml-cve-2021-39194","parents":[{"from":"CVE-2021-39194","to":"CVE-2023-28118","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/commonTest/kotlin/com/charleskorn/kaml/YamlReadingTest.kt"],"commits":["https://github.com/charleskorn/kaml/commit/e18785d043fc6324c81e968aae9764b4b060bc6a","https://github.com/charleskorn/kaml/commit/5f82a2d7e00bfc307afca05d1dc4d7c50593531a"],"basis":"rarely changed file"}]}]}}