Rhino
Rhino vulnerable high CPU usage and potential DoS when passing specific numbers to toFixed() function
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.8.0, < 1.8.1
- >= 1.7.15, < 1.7.15.1
- < 1.7.14.1
Fixed in 1.8.1, 1.7.15.1, 1.7.14.1
Mitigation
Upgrade rhino to 1.8.1 or 1.7.15.1 or 1.7.14.1 or later.
References
- Vendor advisory github.com/mozilla/rhino/security/advisories/G…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.