CVE-2025-62492

Heap out-of-bounds read in js_typed_array_indexOf in QuickJS

5.9 medium EPSS 0.40%

Published 16 Oct 2025 Updated 16 Oct 2025 CNA: Google

Check your servers for CVE-2025-62492

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-62492 affects js_typed_array_indexof, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

5.9 medium CVSS 4.0 from Google (CNA)
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
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Attack requirements
present: an attack works only when the target is in a certain state or configuration
Privileges required
low: the attacker needs an ordinary user account
User interaction
passive: a user has to take part without knowing, such as by viewing a page
Impact on the vulnerable system
confidentiality high, integrity low, availability low: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality high, integrity low, availability low: what an attacker can read, change or stop beyond it

Exploitation

EPSS 0.40%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 36.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Oct 2025):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

Affected products

As the CNA lists them.

ProductVersions
QuickJS
package js_typed_array_indexOf
affected from 2025-04-26, before 2025-09-13
Other versions: unaffected

Is my server affected?

Find the installed version of js_typed_array_indexof and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i js_typed_array_indexof
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-62492 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-62492

RHEL, Rocky, Alma, Fedora

rpm -q js_typed_array_indexof
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-62492

Alpine

apk list --installed | grep -i js_typed_array_indexof

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-62492
trivy image --scanners vuln IMAGE | grep CVE-2025-62492

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-62492 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.