Skip to main content
CVE-2025-62495VulnerabilityPublished Updated

quickjs · Integer Overflow Vulnerability Exists

Affects quickjsSource GCVE Database

0
Compare

Not known to be exploited · CVSS 8.8 High.

Data as of 24 Nov 2026, 20:10 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10quickjspkg:deb/ubuntu/quickjs?arch=source&distro=stonkingOther threatsAffected
  • =2025.04.26-1build1
Fixed in–
Ubuntu 26.04 LTSquickjspkg:deb/ubuntu/quickjs?arch=source&distro=resoluteOther threatsAffected
  • =2025.04.26-1
  • =2025.04.26-1build1
Fixed in–
Ubuntu 25.10quickjspkg:deb/ubuntu/quickjs?arch=source&distro=questingOther threatsAffected
  • =2024.01.13-5
  • =2025.04.26-1
Fixed in–
Ubuntu Pro 24.04 LTSquickjspkg:deb/ubuntu/quickjs?arch=source&distro=esm-apps/nobleOther threatsAffected
  • =2021.03.27-1
  • =2021.03.27-1ubuntu0.1~esm1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

An integer overflow vulnerability exists in the QuickJS regular expression engine (libregexp) due to an inconsistent representation of the bytecode buffer size. * The regular expression bytecode is stored in a DynBuf structure, which correctly uses a $\text{size}\_\text{t}$ (an unsigned type, typically 64-bit) for its size member. * However, several functions, such as re_emit_op_u32 and other internal parsing routines, incorrectly cast or store this DynBuf $\text{size}\_\text{t}$ value into a signed int (typically 32-bit). * When a large or complex regular expression (such as those generated by a recursive pattern in a Proof-of-Concept) causes the bytecode size to exceed $2^{31}$ bytes (the maximum positive value for a signed 32-bit integer), the size value wraps around, resulting in a negative integer when stored in the int variable (Integer Overflow). * This negative value is subsequently used in offset calculations. For example, within functions like re_parse_disjunction, the negative size is used to compute an offset (pos) for patching a jump instruction. * This negative offset is then incorrectly added to the buffer pointer (s->byte\_code.buf + pos), leading to an out-of-bounds write on the first line of the snippet below: put_u32(s->byte_code.buf + pos, len);

References

Community reviews

Loading reviews…