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 package | Versions | Reported 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.0 | CVE 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.1 | GitHub Advisory Database |
All scores
| GitHub_M | 5.5medium CVSS:4.0 | CVSS: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 |
| GitHub | low CVSS:4.0 | CVSS: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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66453 changed 2025-12-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3w8q-xq97-5j7x changed 2025-12-05 | CC-BY-4.0 |
| NVD | CVE-2025-66453 changed 2026-10-18 | Public domain |