CVE-2025-66453
JSON

5.5medium

Rhino vulnerable high CPU usage and potential DoS when passing specific numbers to toFixed() function

Severity
5.5medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3w8q-xq97-5j7x

Description

Rhino is an open-source implementation of JavaScript written entirely in Java. Prior to 1.8.1, 1.7.15.1, and 1.7.14.1, when an application passed an attacker controlled float poing number into the toFixed() function, it might lead to high CPU consumption and a potential Denial of Service. Small numbers go through this call stack: NativeNumber.numTo > DToA.JS_dtostr > DToA.JS_dtoa > DToA.pow5mult where pow5mult attempts to raise 5 to a ridiculous power. This vulnerability is fixed in 1.8.1, 1.7.15.1, and 1.7.14.1.

Affected

Product or packageVersionsReported by
mozilla rhino>= 1.8.0, < 1.8.1, >= 1.7.15, < 1.7.15.1, < 1.7.14.1, before 1.7.14.1, 1.7.15, 1.8.0CVE List, NVD
org.mozilla:rhino (Maven)before 1.7.14.1, from 1.7.15 before 1.7.15.1, from 1.8.0 before 1.8.1GitHub Advisory Database

All scores

GitHub_M5.5medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Rhino is an open-source implementation of JavaScript written entirely in Java. Prior to 1.8.1, 1.7.15.1, and 1.7.14.1, when an application passed an attacker controlled float poing number into the toFixed() function, it might lead to high CPU consumption and a potential Denial of Service. Small numbers go through this call stack: NativeNumber.numTo > DToA.JS_dtostr > DToA.JS_dtoa > DToA.pow5mult where pow5mult attempts to raise 5 to a ridiculous power. This vulnerability is fixed in 1.8.1, 1.7.15.1, and 1.7.14.1.

GitHub Advisory Database

When an application passed an attacker controlled float poing number into the toFixed() function, it might lead to high CPU consumption and a potential Denial of Service.

Small numbers go through this call stack: NativeNumber.numTo > DToA.JS_dtostr > DToA.JS_dtoa > DToA.pow5mult where pow5mult attempts to raise 5 to a ridiculous power.

Example code: (4.47118444E-314).toFixed(2)

NVD (es)

Rhino es una implementación de código abierto de JavaScript escrita completamente en Java. Versiones anteriores a 1.8.1, 1.7.15.1 y 1.7.14.1, cuando una aplicación pasaba un número de punto flotante controlado por un atacante a la función 'toFixed()', esto podría llevar a un alto consumo de CPU y a una potencial denegación de servicio. Los números pequeños pasan por esta pila de llamadas: NativeNumber.numTo > DToA.JS_dtostr > DToA.JS_dtoa > DToA.pow5mult, donde 'pow5mult' intenta elevar 5 a una potencia ridícula. Esta vulnerabilidad está corregida en 1.8.1, 1.7.15.1 y 1.7.14.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66453 changed 2025-12-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-3w8q-xq97-5j7x changed 2025-12-05CC-BY-4.0
NVDCVE-2025-66453 changed 2026-10-18Public domain