CVE-2025-62490
published high CVSS 4.0 · 8.8Use-after-free in js_print_object in QuickJS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| QuickJS | — | js_print_objectQuickJS · 2025-04-26 to < 2025-09-13 · Other versions: unaffected | Affected | Not stated |
Description
In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms->records list, but once again, elements could be removed from the list during js_print_value call.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Google · cna
- Vector string
- CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| QuickJS | QuickJS | 2025-04-26 to < 2025-09-13 (affected · date)Default: unaffected | Google · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
2Provider assertions
2Google · cna
Use-after-free in js_print_object in QuickJS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3b850c8230de7f9b861a9d8b85cff8e91637d14941cced6a9affcc91493b0eac
- Ingested
- 23 Sep 2026, 08:55:28 UTC
- Source record
- Official CVE record