CVE-2025-46687 Details
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.
A heap-based buffer overflow vulnerability has been identified in QuickJS-ng versions through 0.9.0. The issue arises from a missing length check in the 'JS_ReadString' function, which is part of the 'BJSON' deserialization process. This oversight allows for an integer overflow during LEB128 parsing, leading to the allocation of insufficient buffer space. Consequently, the vulnerability can be exploited by crafting specific input that triggers the overflow, causing the application to write beyond the allocated memory and potentially leading to arbitrary code execution.
Users can upgrade to QuickJS-ng version 0.10.1, which addresses this vulnerability by implementing the necessary length checks and correcting the size calculations in the affected deserialization functions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bellard.org/quickjs/Changelog | [email protected] | Release Notes |
| https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a | [email protected] | Patch |
| https://github.com/bellard/quickjs/issues/399 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465 | [email protected] | Patch |
| https://github.com/quickjs-ng/quickjs/issues/1018 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://github.com/quickjs-ng/quickjs/pull/1020 | [email protected] | Issue TrackingPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| bellard quickjs | < 2025-04-26 |
CPE
Remediation
| |
| quickjs-ng quickjs | <= 0.9.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 14, 2026 | Initial Analysis | [email protected] |
| Apr 27, 2025 | New CVE Received | [email protected] |