Open-source package vulnerability · Maven
CVE-2024-47855: JSON-lib mishandles an unbalanced comment string
mediumCVSS 4.0 6.9 · 3.1 5.3GHSA-wwcp-26wc-3fxm
util/JSONTokener.java in JSON-lib before 3.1.0 mishandles an unbalanced comment string.
Published Oct 4, 2024 · Updated Apr 16, 2026
Affected packages
org.kordamp.json:json-lib-core
- Ecosystem
- Maven
- Affected
- < 3.1.0
- Fixed in
- 3.1.0
- Check
mvn dependency:tree -Dincludes=org.kordamp.json:json-lib-core
net.sf.json-lib:json-lib
- Ecosystem
- Maven
- Affected
- <= 2.4
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=net.sf.json-lib:json-lib
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
util/JSONTokener.java in JSON-lib before 3.1.0 mishandles an unbalanced comment string.
Credited to kmoens.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-47855
- https://github.com/kordamp/json-lib/commit/a0c4a0eae277130e22979cf307c95dec4005a78e
- https://github.com/kordamp/json-lib/compare/v3.0.3...v3.1.0
- https://github.com/kordamp/json-lib/blob/35a1f2aa22bac260438c0cf2399549311b5a21aa/pom.xml
- https://sourceforge.net/projects/json-lib
- https://github.com/advisories/GHSA-wwcp-26wc-3fxm
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
