High
kaml has potential denial of service while parsing input with anchors and aliases
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-28118
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:45 UTC · Revision 1
Source evidence
kaml has potential denial of service while parsing input with anchors and aliases
core-osv · Original sourcePublished 20 Mar 2023, 12:39 UTC
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.
osv:CVE-2023-28118
Complete source record
{
"id": "f4d530e1d594f37bb997f36ffef7c2e700ad9a91d72734b006ff94b9d4a239ff",
"url": "https://osv.dev/vulnerability/CVE-2023-28118",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "kaml has potential denial of service while parsing input with anchors and aliases",
"summary": "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.",
"evidence": "osv:CVE-2023-28118",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-28118",
"aliases": [
"CVE-2023-28118",
"GHSA-c24f-2j3g-rg48"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/charleskorn/kaml",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5f82a2d7e00bfc307afca05d1dc4d7c50593531a"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.53.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "5f82a2d7e00bfc307afca05d1dc4d7c50593531a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "5f82a2d7e00bfc307afca05d1dc4d7c50593531a"
}
],
"source": "REFERENCES_TAG",
"original_tag": "0.53.0"
},
{
"cpe": "cpe:2.3:a:kaml_project:kaml:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.53.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"0.52.0",
"0.51.0",
"0.50.0",
"0.49.0",
"0.48.0",
"0.47.0",
"0.46.0",
"0.45.0",
"0.44.0",
"0.43.0",
"0.42.0",
"0.41.0",
"0.40.0",
"0.39.1",
"0.39.0",
"0.38.0",
"0.37.0",
"0.36.0",
"0.35.3",
"0.35.2",
"0.35.1",
"0.35.0",
"0.34.0",
"0.33.0",
"0.32.0",
"0.31.0",
"0.30.0",
"0.29.0",
"0.28.3",
"0.28.2",
"0.28.1",
"0.28.0",
"0.27.0",
"0.26.0",
"0.25.0",
"0.24.0",
"0.23.0",
"0.22.0",
"0.21.0",
"0.20.0",
"0.19.0",
"0.18.1",
"0.18.0",
"0.17.0",
"0.16.1",
"0.16.0",
"0.15.0",
"0.14.0",
"0.13.0",
"0.12.0",
"0.11.0",
"0.10.0",
"0.9.0",
"0.8.0",
"0.7.0",
"0.6.0",
"0.5.0",
"0.4.0",
"0.3.0",
"0.2.1",
"0.2.0",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-28118.json"
}
}
],
"modified": "2026-10-28T02:30:49.419568020Z",
"provider": "osv",
"references": [
"https://github.com/charleskorn/kaml/releases/tag/0.53.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/28xxx/CVE-2023-28118.json",
"https://github.com/charleskorn/kaml/security/advisories/GHSA-c24f-2j3g-rg48",
"https://nvd.nist.gov/vuln/detail/CVE-2023-28118",
"https://github.com/charleskorn/kaml/commit/5f82a2d7e00bfc307afca05d1dc4d7c50593531a"
],
"provider_metadata": {
"cwe_ids": [
"CWE-776"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/28xxx/CVE-2023-28118.json"
}
},
"related_cves": [
{
"value": "CVE-2023-28118",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517863,
"published_at": "2023-03-20T12:39:42.075+00:00"
}