Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. laktak/hjson
  4. ›
  5. CVE-2023-34620

CVE-2023-34620: hjson stack exhaustion vulnerability

June 14, 2023 (updated May 20, 2026)

An issue was discovered hjson through 3.0.0 allows attackers to cause a denial of service or other unspecified impacts via crafted objects that deeply nested structures.

References

  • github.com/advisories/GHSA-5wfc-hjrc-gq87
  • github.com/hjson/hjson-cpp/pull/54
  • github.com/hjson/hjson-go/commit/326599cebc6ef759892f473bf1439b98466a99fa
  • github.com/hjson/hjson-go/pull/67
  • github.com/hjson/hjson-java/issues/24
  • github.com/hjson/hjson-php/commit/2d1b8b4b158a8d841f3a228f267c7cd84fe5a4fa
  • github.com/hjson/hjson-php/pull/45
  • nvd.nist.gov/vuln/detail/CVE-2023-34620

Code Behaviors & Features

Detect and mitigate CVE-2023-34620 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 2.3.0

Fixed versions

  • 2.3.0

Solution

Upgrade to version 2.3.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-400: Uncontrolled Resource Consumption
  • CWE-674: Uncontrolled Recursion
  • CWE-787: Out-of-bounds Write

Source file

packagist/laktak/hjson/CVE-2023-34620.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 07 Jun 2026 12:18:43 +0000.