GHSA-3w8q-xq97-5j7x
Rhino has high CPU usage and potential DoS when passing specific numbers to `toFixed()` function
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2025-66453
- CVSS_V4
- 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
Description
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)`
Paquets affectés
| Paquet | Versions |
|---|---|
| Maven · org.mozilla:rhino | introduced 0, fixed 1.7.14.1 |
| Maven · org.mozilla:rhino | introduced 1.7.15, fixed 1.7.15.1 |
| Maven · org.mozilla:rhino | introduced 1.8.0, fixed 1.8.1 |
Références
- https://github.com/mozilla/rhino/security/advisories/GHSA-3w8q-xq97-5j7x WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-66453 ADVISORY
- https://github.com/mozilla/rhino/commit/2bcf4c43deace35f1f57d86377c6767b0608986e WEB
- https://github.com/mozilla/rhino PACKAGE
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |