{"answers":{"affected":"8 open source packages ship an affected version, including github.com/hjson/hjson-go/v4, github.com/hjson/hjson-go and org.hjson:hjson. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34620 exists.","fix":"Upgrade github.com/hjson/hjson-go/v4 to 4.5.0 or later.","what":"CVE-2023-34620 is a high-severity denial of service vulnerability in n/a, published on 14 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-34620 and fix it if it is affected.\n\nWhat it is: CVE-2023-34620 is a high-severity denial of service vulnerability in n/a, published on 14 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34620 exists.\n\nAffected packages and fixed versions:\n- github.com/hjson/hjson-go/v4 (Go): affected all versions; fixed in 4.5.0\n- github.com/hjson/hjson-go/v4 (Go): affected all versions; fixed in 4.5.0\n- github.com/hjson/hjson-go/v4 (Go): affected all versions; fixed in 4.5.0\n- github.com/hjson/hjson-go (Go): affected all versions; no fix listed\n- org.hjson:hjson (Maven): affected all versions; fixed in 3.0.1\n- org.hjson:hjson (Maven): affected all versions; fixed in 3.0.1\n- laktak/hjson (Packagist): affected all versions; fixed in 2.3.0\n- laktak/hjson (Packagist): affected all versions; fixed in 2.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-34620/ (Markdown: https://insights.sbomify.com/CVE-2023-34620/index.md)","id":"CVE-2023-34620","markdown":"https://insights.sbomify.com/CVE-2023-34620/index.md","name":"CVE-2023-34620","record":{"aliases":["GHSA-5wfc-hjrc-gq87","GO-2026-5157"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"HJSON parser library","requires_auth":"none","summary":"Attackers can cause denial of service in HJSON parsers by submitting crafted objects with cyclic dependencies.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"hjson","vendor":"hjson_project"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"description":"An issue was discovered hjson thru 3.0.0 allows attackers to cause a denial of service or other unspecified impacts via crafted object that uses cyclic dependencies.","ecosystems":["Go","Maven","Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"hjson stack exhaustion vulnerability","id":"CVE-2023-34620","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":8,"n_references":1,"next":{"headline":"Denial of service in n/a","id":"CVE-2023-34623"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/hjson/hjson-go","purl":"pkg:golang/github.com/hjson/hjson-go","source":"GO-2026-5157"},{"ecosystem":"Go","fixed":["4.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/hjson/hjson-go/v4","purl":null,"source":"GHSA-5wfc-hjrc-gq87"},{"ecosystem":"Go","fixed":["4.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/hjson/hjson-go/v4","purl":"pkg:golang/github.com/hjson/hjson-go/v4","source":"GHSA-5wfc-hjrc-gq87"},{"ecosystem":"Go","fixed":["4.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/hjson/hjson-go/v4","purl":"pkg:golang/github.com/hjson/hjson-go/v4","source":"GO-2026-5157"},{"ecosystem":"Maven","fixed":["3.0.1"],"introduced":["0"],"last_affected":[],"package":"org.hjson:hjson","purl":null,"source":"GHSA-5wfc-hjrc-gq87"},{"ecosystem":"Maven","fixed":["3.0.1"],"introduced":["0"],"last_affected":[],"package":"org.hjson:hjson","purl":"pkg:maven/org.hjson/hjson","source":"GHSA-5wfc-hjrc-gq87"},{"ecosystem":"Packagist","fixed":["2.3.0"],"introduced":["0"],"last_affected":[],"package":"laktak/hjson","purl":null,"source":"GHSA-5wfc-hjrc-gq87"},{"ecosystem":"Packagist","fixed":["2.3.0"],"introduced":["0"],"last_affected":[],"package":"laktak/hjson","purl":"pkg:composer/laktak/hjson","source":"GHSA-5wfc-hjrc-gq87"}],"prev":{"headline":"genson vulnerable to stack exhaustion","id":"CVE-2023-34617"},"products":["n/a"],"published":"2023-06-14","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-03","vendors":["n/a"]},"summary":"Attackers can cause denial of service in HJSON parsers by submitting crafted objects with cyclic dependencies.","url":"https://insights.sbomify.com/CVE-2023-34620/"}