Vulnerability Description
quickjs-ng through 0.9.0 has a missing length check in JS_ReadString for a string, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Bellard | Quickjs | < 2025-04-26 |
| Quickjs-Ng | Quickjs | <= 0.9.0 |
Related Weaknesses (CWE)
References
- https://bellard.org/quickjs/ChangelogRelease Notes
- https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ecPatch
- https://github.com/bellard/quickjs/issues/399ExploitIssue TrackingVendor Advisory
- https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82Patch
- https://github.com/quickjs-ng/quickjs/issues/1018ExploitIssue TrackingVendor Advisory
- https://github.com/quickjs-ng/quickjs/pull/1020Issue TrackingPatch
FAQ
What is CVE-2025-46687?
CVE-2025-46687 is a vulnerability with a CVSS score of 5.6 (MEDIUM). quickjs-ng through 0.9.0 has a missing length check in JS_ReadString for a string, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.
How severe is CVE-2025-46687?
CVE-2025-46687 has been rated MEDIUM with a CVSS base score of 5.6/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-46687?
Check the references section above for vendor advisories and patch information. Affected products include: Bellard Quickjs, Quickjs-Ng Quickjs.