kaml <0.53.0 YAML Anchors Memory Attack
CVE-2023-28118 Published on March 20, 2023

kaml has potential denial of service while parsing input with anchors and aliases
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 Repository NVD

Vulnerability Analysis

CVE-2023-28118 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
HIGH

Weakness Type

What is a XEE Vulnerability?

The software uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities. If the DTD contains a large number of nested or recursive entities, this can lead to explosive growth of data when parsed, causing a denial of service.

CVE-2023-28118 has been classified to as a XEE vulnerability or weakness.


Products Associated with CVE-2023-28118

Want to know whenever a new CVE is published for Kamlproject Kaml? stack.watch will email you.

 

Affected Versions

charleskorn kaml Version < 0.53.0 is affected by CVE-2023-28118

Vulnerable Packages

The following package name and versions may be associated with CVE-2023-28118

Package Manager Vulnerable Package Versions Fixed In
maven com.charleskorn.kaml:kaml < 0.53.0 0.53.0

Exploit Probability

EPSS
0.33%
Percentile
55.74%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.