CVEvulnerability
CVE-2021-39194
6.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2021-09-07
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 4.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- CVSS 3.1 ([email protected])
- 6.5 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CVSS 2.0 ([email protected])
- 4.0 MEDIUM — AV:N/AC:L/Au:S/C:N/I:N/A:P
- Weaknesses
- CWE-835
Description
kaml is an open source implementation of the YAML format with support for kotlinx.serialization. In affected versions attackers that could provide arbitrary YAML input to an application that uses kaml could cause the application to endlessly loop while parsing the input. This could result in resource starvation and denial of service. This only affects applications that use polymorphic serialization with the default tagged polymorphism style. Applications using the property polymorphism style are not affected. YAML input for a polymorphic type that provided a tag but no value for the object would trigger the issue. Version 0.35.3 or later contain the fix for this issue.
Affected configurations
• kaml project kaml (< 0.35.3)
Related
Weakness · CWE (1)
- CWE-835 Loop with Unreachable Exit Condition weakness
References
- https://github.com/charleskorn/kaml/commit/e18785d043fc6324c81e968aae9764b4b060bc6a Patch, Third Party Advisory
- https://github.com/charleskorn/kaml/issues/179 Exploit, Patch, Third Party Advisory
- https://github.com/charleskorn/kaml/security/advisories/GHSA-fmm9-3gv8-58f4 Exploit, Third Party Advisory
- https://github.com/charleskorn/kaml/commit/e18785d043fc6324c81e968aae9764b4b060bc6a Patch, Third Party Advisory
- https://github.com/charleskorn/kaml/issues/179 Exploit, Patch, Third Party Advisory
- https://github.com/charleskorn/kaml/security/advisories/GHSA-fmm9-3gv8-58f4 Exploit, Third Party Advisory