{"answers":{"affected":"2 open source packages ship an affected version, including com.charleskorn.kaml:kaml. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-39194 in the wild and no public exploit code.","fix":"Upgrade com.charleskorn.kaml:kaml to 0.35.3 or later.","what":"CVE-2021-39194 is a medium-severity vulnerability in charleskorn kaml, published on 7 Sep 2021."},"fix_prompt":"Check this codebase for CVE-2021-39194 and fix it if it is affected.\n\nWhat it is: CVE-2021-39194 is a medium-severity vulnerability in charleskorn kaml, published on 7 Sep 2021. \nExploitation: There is no known exploitation of CVE-2021-39194 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.charleskorn.kaml:kaml (Maven): affected all versions; fixed in 0.35.3\n- com.charleskorn.kaml:kaml (Maven): affected all versions; fixed in 0.35.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-39194/ (Markdown: https://insights.sbomify.com/CVE-2021-39194/index.md)","id":"CVE-2021-39194","markdown":"https://insights.sbomify.com/CVE-2021-39194/index.md","name":"CVE-2021-39194","record":{"aliases":["GHSA-fmm9-3gv8-58f4"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"kaml","vendor":"kaml_project"}],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Denial of service while parsing polymorphic input with tagged polymorphism style in kaml","id":"CVE-2021-39194","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":null,"year":"2021"},"n_packages":2,"n_references":3,"next":{"headline":"Server-Side Request Forgery vulnerability in misskey","id":"CVE-2021-39195"},"packages":[{"ecosystem":"Maven","fixed":["0.35.3"],"introduced":["0"],"last_affected":[],"package":"com.charleskorn.kaml:kaml","purl":null,"source":"GHSA-fmm9-3gv8-58f4"},{"ecosystem":"Maven","fixed":["0.35.3"],"introduced":["0"],"last_affected":[],"package":"com.charleskorn.kaml:kaml","purl":"pkg:maven/com.charleskorn.kaml/kaml","source":"GHSA-fmm9-3gv8-58f4"}],"prev":{"headline":"Transaction validity oversight in pallet-ethereum","id":"CVE-2021-39193"},"products":["kaml"],"published":"2021-09-07","related":[{"cvss_score":7.5,"headline":"kaml has potential denial of service while parsing input with anchors and aliases","id":"CVE-2023-28118","kev_date_added":null,"published":"2023-03-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["charleskorn"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2021-39194/"}