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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.66%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-09-07T19:25:10.000Z
- Modified: 2026-07-08T06:28:53.326Z
- Also known as: GHSA-fmm9-3gv8-58f4
- Weaknesses: CWE-230, CWE-835
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- charleskorn kaml: < 0.35.2
- com.charleskorn.kaml:kaml (Maven): before 0.35.3
- kaml_project kaml: before 0.35.3

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/charleskorn/kaml/security/advisories/GHSA-fmm9-3gv8-58f4> (exploit, third-party-advisory, web)
- <https://github.com/charleskorn/kaml/issues/179> (exploit, patch, third-party-advisory, web)
- <https://github.com/charleskorn/kaml/commit/e18785d043fc6324c81e968aae9764b4b060bc6a> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39194> (advisory)
- <https://github.com/charleskorn/kaml> (web)

## Sources

- CVE List: [CVE-2021-39194](https://www.cve.org/CVERecord?id=CVE-2021-39194), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-fmm9-3gv8-58f4](https://github.com/advisories/GHSA-fmm9-3gv8-58f4), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-39194](https://nvd.nist.gov/vuln/detail/CVE-2021-39194), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-39194 · Whole record: https://cve.day/CVE-2021-39194.json · Rebuilt by cve.day 2026-11-25T22:58:03.696Z
