CVE-2025-62495
Linux Debian vulnerability analysis and mitigation

Overview

An integer overflow vulnerability exists in the QuickJS regular expression engine (libregexp) due to an inconsistent representation of the bytecode buffer size. The vulnerability was discovered and disclosed in October 2025, affecting the QuickJS JavaScript engine's regular expression parsing functionality (NVD).

Technical details

The vulnerability stems from a type mismatch in buffer size handling. The regular expression bytecode is stored in a DynBuf structure that uses sizet (typically 64-bit unsigned) for its size member, but several functions like reemitopu32 and other internal parsing routines incorrectly cast this value to a signed 32-bit integer. When processing large or complex regular expressions that cause the bytecode size to exceed 2^31 bytes, an integer overflow occurs, resulting in a negative value. The vulnerability has been assigned a CVSS v4.0 Base Score of 7.1 (HIGH) with the vector string CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L (NVD).

Impact

The vulnerability leads to out-of-bounds write operations when the negative offset is used in buffer pointer calculations, specifically in functions like reparsedisjunction where the negative size is used to compute an offset for patching jump instructions. This can result in memory corruption and potential arbitrary code execution (NVD).

Mitigation and workarounds

The vulnerability has been identified and is currently under evaluation for various Linux distributions. For Ubuntu 24.04 LTS, the package is marked as 'Needs evaluation' status (Ubuntu CVE). A fix was released in the QuickJS changelog dated September 13, 2025 (QuickJS Changelog).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-49655CRITICAL9.8
  • PythonPython
  • keras
NoYesOct 17, 2025
CVE-2025-26625HIGH8.6
  • Git LFSGit LFS
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage
NoYesOct 17, 2025
CVE-2025-62496HIGH7.1
  • Linux DebianLinux Debian
  • quickjs
NoNoOct 16, 2025
CVE-2025-62495HIGH7.1
  • Linux DebianLinux Debian
  • quickjs
NoNoOct 16, 2025
CVE-2025-61789MEDIUM5.3
  • Linux DebianLinux Debian
  • icingadb-web
NoNoOct 16, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management