Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.charleskorn.kaml/kaml
  4. ›
  5. CVE-2023-28118

CVE-2023-28118: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

March 20, 2023 (updated March 24, 2023)

kaml provides YAML support for kotlinx.serialization. Prior to version 0.53.0, applications that use kaml to parse untrusted input containing anchors and aliases may consume excessive memory and crash. Version 0.53.0 and later default to refusing to parse YAML documents containing anchors and aliases. There are no known workarounds.

References

  • github.com/advisories/GHSA-c24f-2j3g-rg48
  • github.com/charleskorn/kaml/commit/5f82a2d7e00bfc307afca05d1dc4d7c50593531a
  • github.com/charleskorn/kaml/releases/tag/0.53.0
  • github.com/charleskorn/kaml/security/advisories/GHSA-c24f-2j3g-rg48
  • nvd.nist.gov/vuln/detail/CVE-2023-28118

Code Behaviors & Features

Detect and mitigate CVE-2023-28118 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.53.0

Fixed versions

  • 0.53.0

Solution

Upgrade to version 0.53.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Source file

maven/com.charleskorn.kaml/kaml/CVE-2023-28118.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:16 +0000.