CVE-2021-39194 Denial of service while parsing polymorphic input with tagged polymorphism style in kaml

Medium 4.3 Published Updated
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.

PackageAffectedFixed in
com.charleskorn.kaml:kaml MavenAll versions0.35.3
com.charleskorn.kaml:kaml MavenAll versions0.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.

Sources

Also known as GHSA-fmm9-3gv8-58f4.

Is CVE-2021-39194 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free