CVE-2025-62492
Last modified
CVE-2025-62492 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. A vulnerability stemming from floating-point arithmetic precision errors exists in the QuickJS engine's implementation of TypedArray.prototype.indexOf() when a negative fromIndex argument is supplied. * The fromIndex argument (read as a double variable, $d$) is used to calculate the starting position for the search. * If d is negative, the index is calculated relative to the end of the array by adding the array's length (len) to d: $$d_{new} = d + \text{len}$$ * Due to the inherent limitations of floating-point arithmetic, if the negative value $d$ is extremely small (e.g., $-1 \times 10^{-20}$), the addition $d + \text{len}$ can result in a loss of precision, yielding an outcome that is exactly equal to $\text{len}$. * The result is then converted to an integer index $k$: $k = \text{len}$. * The search function proceeds to read array elements starting from index $k$. Since valid indices are $0$ to $\text{len}-1$, starting the read at index $\text{len}$ is one element past the end of the array. This allows an attacker to cause an Out-of-Bounds Read of one element immediately following the buffer. EPSS estimates a 0.36% chance of exploitation in the next 30 days.
Description
A vulnerability stemming from floating-point arithmetic precision errors exists in the QuickJS engine's implementation of TypedArray.prototype.indexOf() when a negative fromIndex argument is supplied. * The fromIndex argument (read as a double variable, $d$) is used to calculate the starting position for the search. * If d is negative, the index is calculated relative to the end of the array by adding the array's length (len) to d: $$d_{new} = d + \text{len}$$ * Due to the inherent limitations of floating-point arithmetic, if the negative value $d$ is extremely small (e.g., $-1 \times 10^{-20}$), the addition $d + \text{len}$ can result in a loss of precision, yielding an outcome that is exactly equal to $\text{len}$. * The result is then converted to an integer index $k$: $k = \text{len}$. * The search function proceeds to read array elements starting from index $k$. Since valid indices are $0$ to $\text{len}-1$, starting the read at index $\text{len}$ is one element past the end of the array. This allows an attacker to cause an Out-of-Bounds Read of one element immediately following the buffer. While the scope of this read is small (one element), it can potentially lead to Information Disclosure of adjacent memory contents, depending on the execution environment.
Metrics
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:H/VI:L/VA:L/SC:H/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Quickjs Project | Quickjs | < 2025-09-13 |
References
- https://bellard.org/quickjs/ChangelogRelease Notes
- https://issuetracker.google.com/434194797Exploit, Issue Tracking
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-62492?
How severe is CVE-2025-62492?
How do I fix CVE-2025-62492?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-62483Improper removal of sensitive information in certain Zoom Cl…7.5
- CVE-2025-62484Inefficient regular expression complexity in certain Zoom Wo…9.8
- CVE-2025-62487On October 1, 2025, Palantir discovered that images uploaded…3.5
- CVE-2025-6249An authentication bypass vulnerability was reported in FileZ…8.4
- CVE-2025-62490In quickjs, in js_print_object, when printing an array, the …8.8
- CVE-2025-62491A Use-After-Free (UAF) vulnerability exists in the QuickJS e…8.8
- CVE-2025-62493A vulnerability exists in the QuickJS engine's BigInt string…6.5
- CVE-2025-62494A type confusion vulnerability exists in the handling of the…8.8
- CVE-2025-62495An integer overflow vulnerability exists in the QuickJS regu…8.8
- CVE-2025-62496A vulnerability exists in the QuickJS engine's BigInt string…8.8
- CVE-2025-62497Cross-site request forgery vulnerability exists in SNC-CX600…6.5
- CVE-2025-62498A relative path traversal (ZipSlip) vulnerability was discov…8.8
Are you affected by CVE-2025-62492?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
