Vulnerability · Published Apr 27, 2025 · Assigned by mitre
CVE-2025-46687
Medium 5.6
In plain English
A medium-severity resource allocation without limits in QuickJS from QuickJS Project. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)0.3%top 76.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | quickjs-ng | 0.10.0-r0 | ALPINE-CVE-2025-46687 |
| Alpine:v3.24 | quickjs-ng | 0.10.0-r0 | ALPINE-CVE-2025-46687 |
| Debian:13 | quickjs | 2025.04.26-1 | DEBIAN-CVE-2025-46687 |
| Debian:14 | quickjs | 2025.04.26-1 | DEBIAN-CVE-2025-46687 |
| Ubuntu:25.10 | quickjs | no fix listed | UBUNTU-CVE-2025-46687 |
| Ubuntu:26.04:LTS | quickjs | no fix listed | UBUNTU-CVE-2025-46687 |
| Ubuntu:26.10 | quickjs | no fix listed | UBUNTU-CVE-2025-46687 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| QuickJS Project | QuickJS | 0 – before 2025-04-26 |
Weakness: CWE-770 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
References
- https://github.com/quickjs-ng/quickjs/issues/1018
- https://github.com/quickjs-ng/quickjs/pull/1020
- https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a
- https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465
- https://github.com/bellard/quickjs/issues/399
- https://bellard.org/quickjs/Changelog