CVE-2025-66453
Rhino has high CPU usage and potential DoS when passing specific numbers to `toFixed()` function
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)
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mozilla » rhino | < 1.7.14.1>= 1.7.15, < 1.7.15.1>= 1.8.0, < 1.8.1 | 1.7.14.1, 1.7.15.1, 1.8.1 |
Blast radius
67% of the dependent artifacts (10,053) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 54,240 |
| 2 hops | 247,768 |
| 3 hops | 199,326 |
| 4 hops | 184,053 |
| 5 hops | 213,669 |
| 6 hops | 103,162 |
Most used dependents
- org.freemarker » freemarker3,450 usages
- org.clojure » clojurescript3,073 usages
- org.apache.maven.plugins » maven-pmd-plugin2,252 usages
- com.github.tomakehurst » wiremock1,838 usages
- midje » midje1,362 usages
- com.github.tomakehurst » wiremock-jre81,180 usages
- com.taoensso » timbre977 usages
- com.jetbrains.intellij.platform » ide-impl753 usages
- prismatic » schema729 usages
- com.atlassian.confluence » confluence724 usages
- com.vaadin » vaadin-core640 usages
- com.vaadin » vaadin-maven-plugin600 usages
- com.atlassian.jira » jira-core554 usages
- org.mock-server » mockserver-netty541 usages
- com.jetbrains.intellij.platform » lang-impl536 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
