All reports
High

kaml has potential denial of service while parsing input with anchors and aliases

Affected versions

Affected versions
< 0.53.0
Fixed version
0.53.0

Exploitation

CVE-2023-28118

Probability of exploitation in the next 30 days: 0.97%

FIRST EPSS · 2026-11-19

Description

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.

Links

Credits

  • gdude2002