CVE-2021-39194 Denial of service while parsing polymorphic input with tagged polymorphism style in kaml
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2021-39194?
CVE-2021-39194 is a medium-severity vulnerability in charleskorn kaml, published on 7 Sep 2021.
Official 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.
Weakness: CWE-835
Which versions are affected by CVE-2021-39194?
2 open source packages ship an affected version, including com.charleskorn.kaml:kaml. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.charleskorn.kaml:kaml Maven | All versions | 0.35.3 |
com.charleskorn.kaml:kaml Maven | All versions | 0.35.3 |
Products include Kaml Project Kaml.
How do I fix CVE-2021-39194?
Upgrade com.charleskorn.kaml:kaml to 0.35.3 or later.
Is CVE-2021-39194 being exploited?
There is no known exploitation of CVE-2021-39194 in the wild and no public exploit code.
Other vulnerabilities in charleskorn kaml
Sources
Also known as GHSA-fmm9-3gv8-58f4.