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.
Remediation
References
https://github.com/charleskorn/kaml/issues/179
https://github.com/charleskorn/kaml/commit/e18785d043fc6324c81e968aae9764b4b060bc6a
https://github.com/charleskorn/kaml/security/advisories/GHSA-fmm9-3gv8-58f4
Related Vulnerabilities
CVE-2018-20677 Vulnerability in maven package org.webjars.bowergithub.twbs:bootstrap
CVE-2022-36901 Vulnerability in maven package org.jenkins-ci.plugins:http_request
CVE-2021-46363 Vulnerability in maven package info.magnolia:magnolia-core
CVE-2023-36479 Vulnerability in maven package org.eclipse.jetty:jetty-servlets
CVE-2023-43123 Vulnerability in maven package org.apache.storm:storm-pmml-examples