High severity · published Apr 27, 2025
CVE-2025-46687
quickjs-ng through 0.9.0 has a missing length check in JS_ReadString for a string, leading to a heap-based buffer overflow
7.8
CVSS
0.3%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 23% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
QU
QuickJS · QuickJS Project
before 2025-04-26 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-46687
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-46687
Release Notes
https://bellard.org/quickjs/Changelog
Patch
https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a
Exploit
https://github.com/bellard/quickjs/issues/399
Patch
https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465
Exploit
https://github.com/quickjs-ng/quickjs/issues/1018
Issue Tracking
https://github.com/quickjs-ng/quickjs/pull/1020
More from QuickJS
8.8
CVE-2025-62496
Integer overflow in js_bigint_from_string in QuickJS
8.8
CVE-2025-62495
Type confusion in string addition in QuickJS
8.8
CVE-2025-62494
Type confusion in string addition in QuickJS
8.8
CVE-2025-62491
Use-after-free in js_std_promise_rejection_check in QuickJS
8.8
CVE-2025-62490
Use-after-free in js_print_object in QuickJS
