Resource exhaustion in Mozilla Rhino
CVE-2025-66453
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.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.003, 21.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Mozilla Rhino — versions 1.8.0, >= 1.8.0, < 1.8.1, < 1.7.14.1
Weakness classification (CWE)
References
- https://github.com/mozilla/rhino/security/advisories/GHSA-3w8q-xq97-5j7x (Vendor Advisory)