HIGH 7.5

CVE-2023-28118

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

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.charleskorn.kaml » kaml
< 0.53.0
0.53.0

Blast radius

1affected artifacts
60affected versions
275dependent artifacts (est.)
6,061dependent versions

37% of the dependent artifacts (103) still pull an affected version in their latest release.

DepthDependent versions
Direct
205
2 hops
762
3 hops
460
4 hops
1,329
5 hops
2,183
6 hops
1,122

Most used dependents

Computed from the dependency graph of build 20261126.1706 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.