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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.charleskorn.kaml » kaml | < 0.53.0 | 0.53.0 |
Blast radius
37% of the dependent artifacts (103) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 205 |
| 2 hops | 762 |
| 3 hops | 460 |
| 4 hops | 1,329 |
| 5 hops | 2,183 |
| 6 hops | 1,122 |
Most used dependents
- ch.admin.bit.jeap » jeap-messaging-infrastructure-kafka98 usages
- software.amazon.kinesis » amazon-kinesis-client68 usages
- com.amazonaws » amazon-kinesis-producer53 usages
- com.spotify » scio-core50 usages
- org.apache.beam » beam-sdks-java-io-google-cloud-platform44 usages
- org.apache.beam » beam-runners-google-cloud-dataflow-java43 usages
- com.spotify » scio-test42 usages
- com.amazonaws » dynamodb-streams-kinesis-adapter36 usages
- com.squareup.wire » wire-compiler30 usages
- org.apache.beam » beam-sdks-java-io-kafka28 usages
- ch.admin.bit.jeap » jeap-messaging-infrastructure-kafka-test27 usages
- org.apache.beam » beam-sdks-java-extensions-sql20 usages
- software.amazon.glue » schema-registry-serde20 usages
- org.apache.camel » camel-allcomponents16 usages
- org.apache.camel » camel-catalog-maven16 usages
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.
References
| Advisory | NVD CVE-2023-28118 | nvd.nist.gov |
| Package | charleskorn/kaml | github.com |
| Web | charleskorn/kaml advisory GHSA-c24f-2j3g-rg48 | github.com |
| Web | charleskorn/kaml commit 5f82a2d | github.com |
| Web | charleskorn/kaml release 0.53.0 | github.com |
