CVE-2025-62495CWE-191

CVE-2025-62495

High · published October 16, 2025

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

⚡ An integer overflow vulnerability in QuickJS can turn a large regular expression into a ticking time bomb! When the bytecode size exceeds a certain limit, chaos ensues! 🔥 Think of it like a highway with a weight limit sign that everyone ignores. If too many heavy trucks cruise through, what happens? The road gets damaged, leading to potential crashes and chaos ahead! With this vulnerability, an attacker could exploit a malformed regular expression to write beyond the intended memory bounds. This could lead to unpredictable behavior or even remote code execution—imagine your trusty highway turning into a treacherous obstacle course!

Put simply

Think of it like a highway with a weight limit sign that everyone ignores. If too many heavy trucks cruise through, what happens? The road gets damaged, leading to potential crashes and chaos ahead! The vulnerability occurs because functions incorrectly cast the size of a bytecode buffer from an unsigned type to a signed integer. When the buffer size exceeds what the signed integer can handle, it wraps around into negative territory, leading to dangerous out-of-bounds writes.

What to do

With this vulnerability, an attacker could exploit a malformed regular expression to write beyond the intended memory bounds. This could lead to unpredictable behavior or even remote code execution—imagine your trusty highway turning into a treacherous obstacle course! To remediate this vulnerability, developers should patch QuickJS to the latest version where this issue is addressed. Ensure to validate all input sizes and avoid casting unsigned types to signed types in your own code. Regular audits can help catch these sneaky pitfalls! You've got this! With the right steps, you can protect your applications and keep the internet safe! 🛡️

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.00457 · 38.7th percentile
Weakness
CWE-191 · Integer Underflow (Wrap 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:51Z
    Type confusion in string addition in QuickJS
    cvelistv5