Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/hjson/hjson-go/v4
  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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.5.0

Fixed versions

  • 4.5.0

Solution

Upgrade to version 4.5.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

go/github.com/hjson/hjson-go/v4/CVE-2023-34620.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:20 +0000.