GHSA-5wfc-hjrc-gq87high7.5
hjson stack exhaustion vulnerability
The advisory, in context
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
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
org.hjson:hjson Maven
Ecosystem versions
Earlier releases before 3.0.1
Fixed in 3.0.1
11 explicitly affected versions
1.0.0, 1.0.1, 1.1.0, 1.1.2, 1.1.3, 1.1.4, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 3.0.0
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0.0",
"1.0.1",
"1.1.0",
"1.1.2",
"1.1.3",
"1.1.4",
"2.0.0",
"2.0.1",
"2.1.0",
"2.1.1",
"3.0.0"
]
}laktak/hjson Packagist
Ecosystem versions
Earlier releases before 2.3.0
Fixed in 2.3.0
10 explicitly affected versions
1.0.0, v1.0.1, v1.0.2, v2.0.0, v2.0.1, v2.0.2, v2.1.0, v2.2.0, v2.2.1, v2.2.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.3.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0.0",
"v1.0.1",
"v1.0.2",
"v2.0.0",
"v2.0.1",
"v2.0.2",
"v2.1.0",
"v2.2.0",
"v2.2.1",
"v2.2.2"
]
}Semantic versions
Earlier releases before 4.5.0
Fixed in 4.5.0
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "4.5.0"
}
],
"type": "SEMVER"
}
],
"versions": []
}References
- https://nvd.nist.gov/vuln/detail/CVE-2023-34620
- https://github.com/hjson/hjson-java/issues/24
- https://github.com/hjson/hjson-cpp/pull/54
- https://github.com/hjson/hjson-go/pull/67
- https://github.com/hjson/hjson-php/pull/45
- https://github.com/hjson/hjson-go/commit/326599cebc6ef759892f473bf1439b98466a99fa
- https://github.com/hjson/hjson-php/commit/2d1b8b4b158a8d841f3a228f267c7cd84fe5a4fa