CVE-2025-62490CWE-416

CVE-2025-62490

High · published October 16, 2025

CVSS v3.1
8.8
EPSS
0%
Percentile
33.9
In the wild
Unconfirmed
What it is

⚡ A sneaky use-after-free vulnerability lurks in quickjs when printing arrays, and it’s ready to cause chaos! Think of it like a chef trying to prepare a dish while someone keeps taking ingredients off the counter — just as the chef reaches for the last potato, poof! It's gone. The array's length might change unexpectedly, leading to a recipe gone wrong! An attacker could exploit this vulnerability to execute arbitrary code, leading to potentially disastrous consequences. Imagine if your program crashes or, worse, hands control over to an attacker — that’s a nightmare scenario! Your application could become a playground for hackers if they can manipulate the array while it’s being printed.

Put simply

Think of it like a chef trying to prepare a dish while someone keeps taking ingredients off the counter — just as the chef reaches for the last potato, poof! It's gone. The array's length might change unexpectedly, leading to a recipe gone wrong! This use-after-free vulnerability in quickjs occurs when js_print_object fetches the array length and loops over it, but an attacker-defined callback can change the array during printing, causing the program to access freed memory.

What to do

An attacker could exploit this vulnerability to execute arbitrary code, leading to potentially disastrous consequences. Imagine if your program crashes or, worse, hands control over to an attacker — that’s a nightmare scenario! Your application could become a playground for hackers if they can manipulate the array while it’s being printed. Upgrade to the latest version of quickjs that addresses this vulnerability. Review your code to ensure that callbacks do not modify arrays while they are being printed. Implement checks to avoid accessing out-of-bound elements and perform thorough testing. You've got this! Fixing this vulnerability will safeguard your application and keep it running smoothly! 🛡️

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00407 · 33.9th percentile
Weakness
CWE-416 · Use After Free
Published
2025-10-16T20:15Z
Affected products (1)
ProductVersionsFixed in
quickjs_project/quickjs< 2025-09-132025-09-13
References (2)
EPSS history
Timeline
  • 16 OCT 15:51Z
    Use-after-free in js_print_object in QuickJS
    cvelistv5