---
id: CVE-2023-34620
aliases:
  - GHSA-5wfc-hjrc-gq87
  - GO-2026-5157
title: hjson stack exhaustion vulnerability
summary: hjson stack exhaustion vulnerability
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: hjson
product: 'org.hjson:hjson'
ecosystem: maven
affected:
  - 'org.hjson:hjson < 3.0.1'
  - laktak/hjson < 2.3.0
  - github.com/hjson/hjson-go/v4 < 4.5.0
patched:
  - 'org.hjson:hjson 3.0.1'
  - laktak/hjson 2.3.0
  - github.com/hjson/hjson-go/v4 4.5.0
published: '2023-06-14'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:02.120371256Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-5wfc-hjrc-gq87'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-34620'
  - url: 'https://github.com/hjson/hjson-java/issues/24'
  - url: 'https://github.com/hjson/hjson-cpp/pull/54'
  - url: 'https://github.com/hjson/hjson-go/pull/67'
  - url: 'https://github.com/hjson/hjson-php/pull/45'
  - url: >-
      https://github.com/hjson/hjson-go/commit/326599cebc6ef759892f473bf1439b98466a99fa
  - url: >-
      https://github.com/hjson/hjson-php/commit/2d1b8b4b158a8d841f3a228f267c7cd84fe5a4fa
tags:
  - osv
  - maven
epss: 0.00778
epssPercentile: 0.53908
ingestedAt: '2026-09-12T03:13:01.756Z'
---

## Overview

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.

## Affected packages

- `org.hjson:hjson < 3.0.1`
- `laktak/hjson < 2.3.0`
- `github.com/hjson/hjson-go/v4 < 4.5.0`

## Remediation

Upgrade to a patched release:

- `org.hjson:hjson 3.0.1`
- `laktak/hjson 2.3.0`
- `github.com/hjson/hjson-go/v4 4.5.0`
