CVE-2025-46687
quickjs-ng through 0.9.0 has a missing length check in JS_ReadString for a string, leading to a...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.6
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.
- Record
CVE-2025-46687- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L - Weakness
- CWE-770
- Updated
- 2026-11-02
EUVDEUVD-2025-12428
5.6
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.
- Record
EUVD-2025-12428- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-hrc5-3jpv-g9x2
5.6
quickjs-ng through 0.9.0 has a missing length check in JS_ReadString for a string, leading to a...
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.
- Record
GHSA-hrc5-3jpv-g9x2- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L - Weakness
- CWE-770
- Updated
- 2026-11-02
NVD
5.6
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.
- Record
CVE-2025-46687- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-770
- Updated
- 2026-11-02
OSVALPINE-CVE-2025-46687
7.8
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.
- Record
ALPINE-CVE-2025-46687- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
5.6
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.
- Record
CVE-2025-46687- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L - Weakness
- CWE-770
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2025-46687
7.8
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.
- Record
DEBIAN-CVE-2025-46687- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-46687
5.6
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.
- Record
UBUNTU-CVE-2025-46687- CVSS 3.1
- 5.6 Medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L - CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
quickjs-ngAlpine:v3.23 |
before 0.10.0-r0 | 0.10.0-r0 |
quickjs-ngAlpine:v3.24 |
before 0.10.0-r0 | 0.10.0-r0 |
quickjsDebian:13 |
before 2025.04.26-1 | 2025.04.26-1 |
quickjsDebian:14 |
before 2025.04.26-1 | 2025.04.26-1 |
quickjsUbuntu:Pro:24.04:LTS |
All versions, plus listed versions 2021.03.27-12021.03.27-1ubuntu0.1~esm1 |
None known |
quickjsUbuntu:25.10 |
All versions, plus listed versions 2024.01.13-52025.04.26-1 |
None known |
quickjsUbuntu:26.10 |
All versions, plus listed versions 2025.04.26-1build1 |
None known |
quickjsUbuntu:26.04:LTS |
All versions, plus listed versions 2025.04.26-12025.04.26-1build1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-46687 is a medium vulnerability (CVSS 5.6) in Bellard Quickjs, published April 27, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.30%, the 23rd percentile. Fixed in quickjs-ng 0.10.0-r0.
References
github.com/quickjs-ng/quickjs/issues/1018
github.com/quickjs-ng/quickjs/pull/1020
github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a
github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465
github.com/bellard/quickjs/issues/399
bellard.org/quickjs/Changelog
Show 7 moreShow less
nvd.nist.gov/vuln/detail/CVE-2025-46687
github.com/advisories/GHSA-hrc5-3jpv-g9x2
security.alpinelinux.org/vuln/CVE-2025-46687
github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46687.json
security-tracker.debian.org/tracker/CVE-2025-46687
ubuntu.com/security/CVE-2025-46687
cve.org/CVERecord?id=CVE-2025-46687