GHSA-3w8q-xq97-5j7x

    Dashboard / Vulnerabilities / GHSA-3w8q-xq97-5j7x

    GHSA-3w8q-xq97-5j7x

    Published: 3 Dec 2025Last Modified: 5 Dec 2025

    Summary: Rhino has high CPU usage and potential DoS when passing specific numbers to `toFixed()` function

    Details: 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 packages

    Package

    Name: org.mozilla:rhino

    Purl: pkg:maven/org.mozilla/rhino

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -1.7.14.1

    Affected versions

    1.7.10
    1.7.11
    1.7.11-RC1
    1.7.11-RC2
    1.7.12
    1.7.13
    1.7.14
    1.7.14-RC1
    1.7.6
    1.7.7
    1.7.7.1
    1.7.7.2
    1.7.8
    1.7.8-RC1
    1.7.9

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-3w8q-xq97-5j7x | CVE-DB