{"id":"CVE-2026-32686","aliases":["EEF-CVE-2026-32686","GHSA-rhv4-8758-jx7v"],"url":"https://o3.security/vulnerability/CVE-2026-32686","summary":"Unbounded exponent in decimal enables unauthenticated DoS","details":"Uncontrolled Resource Consumption vulnerability in ericmj decimal allows unauthenticated remote Denial of Service.\n\nThe decimal library does not bound the exponent on parsed input. Storing a decimal with a very large exponent (e.g. Decimal.new(\"1e1000000000\")) is accepted without error. Subsequent calls to arithmetic functions (Decimal.add/2, Decimal.sub/2, Decimal.div/2), Decimal.to_string/2 with :normal or :xsd format, Decimal.to_integer/1, Decimal.round/3, or Decimal.compare/3 with a threshold allocate memory proportional to the exponent value, which can exhaust available memory and crash the BEAM VM.\n\nAny application that accepts user-supplied decimal input and subsequently performs arithmetic, rounding, conversion to integer, or string formatting on it is exposed. A single malicious request is sufficient to cause an out-of-memory crash.\n\nThis issue affects decimal: from 0.1.0 before 3.0.0.","published":"2026-05-07T14:04:47.222Z","modified":"2026-08-07T11:50:16.513524360Z","cvss":null,"epss":{"score":0.00321,"percentile":0.24498,"asOf":"2026-08-09"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Hex","name":"decimal","fixedVersion":"3.0.0"}],"fix":{"url":"https://github.com/ericmj/decimal/commit/6a523f3a73b8c9974540e21c7aa88f1258bb35ae","label":"ericmj/decimal@6a523f3"},"references":[{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-32686.html"},{"type":"WEB","url":"https://github.com"},{"type":"WEB","url":"https://osv.dev/vulnerability/EEF-CVE-2026-32686"},{"type":"WEB","url":"https://repo.hex.pm"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32686.json"},{"type":"ADVISORY","url":"https://github.com/ericmj/decimal/security/advisories/GHSA-rhv4-8758-jx7v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32686"},{"type":"FIX","url":"https://github.com/ericmj/decimal/commit/6a523f3a73b8c9974540e21c7aa88f1258bb35ae"},{"type":"PACKAGE","url":"https://github.com/ericmj/decimal"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:50:16.513524360Z"}}