CVE-2025-62496CWE-190

CVE-2025-62496

High · published October 16, 2025

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

⚡ A colossal number of digits can turn into a tickling time bomb! The QuickJS engine's parsing mishap allows for Integer Overflow when trying to create a BigInt from an excessively large number of digits. 🔥 Think of it like trying to pour a gallon of water into a pint-sized cup — the cup just can't handle it and overflows. In this case, the BigInt's memory allocation gets underestimated, leading to a chaotic spill of data! An attacker could exploit this vulnerability to write data beyond the allocated memory space, causing a heap overflow. This could lead to crashing applications or worse, potentially allowing for arbitrary code execution. If successful, it could mean a playground for malicious actors!

Put simply

Think of it like trying to pour a gallon of water into a pint-sized cup — the cup just can't handle it and overflows. In this case, the BigInt's memory allocation gets underestimated, leading to a chaotic spill of data! This vulnerability in QuickJS arises when the function calculating the necessary bits for a BigInt underestimates memory due to Integer Overflow, which then leads to a dangerous Heap Out-of-Bounds Write when trying to store the actual BigInt data.

What to do

An attacker could exploit this vulnerability to write data beyond the allocated memory space, causing a heap overflow. This could lead to crashing applications or worse, potentially allowing for arbitrary code execution. If successful, it could mean a playground for malicious actors! To mitigate this issue, developers should update QuickJS to the latest version where this flaw is fixed. Additionally, ensure input validation is performed to limit the length of strings processed by the BigInt function. Regularly reviewing dependencies can also help catch other vulnerabilities! You’ve got this! By taking these steps, you’ll be well on your way to securing your application! 🛡️

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.00480 · 40.4th percentile
Weakness
CWE-190 · Integer Overflow or Wraparound
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:52Z
    Integer overflow in js_bigint_from_string in QuickJS
    cvelistv5