CVE
CVE-2025-46688
published medium CVSS 3.1 · 5.6quickjs-ng: Heap-Based Buffer Overflow in QuickJS's JS_ReadBigInt Function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| QuickJS Project | — | QuickJS0 to < 2025-04-26 · Other versions: unaffected | Affected | Not stated | mitre |
| Alpine Linux | edge | quickjs-ng | Fixed | 0.10.0-r0 | Package fix record |
| Alpine Linux | v3.23 | quickjs-ng | Fixed | 0.10.0-r0 | Package fix record |
| Alpine Linux | v3.24 | quickjs-ng | Fixed | 0.10.0-r0 | Package fix record |
Description
quickjs-ng through 0.9.0 has an incorrect size calculation in JS_ReadBigInt for a BigInt, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.6 / 10
- Severity
- medium
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| QuickJS Project | QuickJS | 0 to < 2025-04-26 (affected · custom)Default: unaffected | mitre · cna |
Weaknesses
1- CWE-131 CWE-131 Incorrect Calculation of Buffer Size
References
6- https://bellard.org/quickjs/Changelog
- https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a
- https://github.com/bellard/quickjs/issues/399
- https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465
- https://github.com/quickjs-ng/quickjs/issues/1018
- https://github.com/quickjs-ng/quickjs/pull/1020
Provider assertions
2mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5d2411774f58ea8aaccc2d629e62a0407274117e7291db6be6c4d0e59b53b7ac
- Ingested
- 23 Sep 2026, 08:49:40 UTC
- Source record
- Official CVE record