{"id":"CVE-2026-32686","aliases":["EEF-CVE-2026-32686","GHSA-rhv4-8758-jx7v"],"title":"Unbounded exponent in decimal enables unauthenticated DoS","titleSource":"EEF","descriptionSource":"OSV","description":"## Summary\n\nUncontrolled 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`M), `Decimal.to_string/2`M with `:normal`M or `:xsd`M format, `Decimal.to_integer/1`M, `Decimal.round/3`M, or `Decimal.compare/3`M 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.","severity":"medium","score":6.9,"published":"2026-05-07T14:04:47.222Z","modified":"2026-11-20T06:01:01.655Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"decimal","sources":[{"name":"OSV · EEF-CVE-2026-32686","url":"https://osv.dev/vulnerability/EEF-CVE-2026-32686"}],"ranges":[{"events":[{"introduced":"0.1.0"},{"fixed":"3.0.0"}],"type":"SEMVER"}],"versions":["0.1.1","0.1.2","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.3.1","1.4.0","1.4.1","1.5.0","1.6.0","1.7.0","1.8.0","1.8.1","1.9.0","1.9.0-rc.0","2.0.0","2.0.0-rc.0","2.1.0","2.1.1","2.2.0","2.3.0","2.4.0","2.4.1"],"fixed":["3.0.0"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"bc11f4a2b6fb61fc1360a0ab4e79141bba918841"},{"fixed":"6a523f3a73b8c9974540e21c7aa88f1258bb35ae"}],"type":"GIT","repo":"https://github.com/ericmj/decimal"}],"versions":["v2.4.0","v2.3.0","v2.2.0","v2.1.1","v2.1.0","v2.0.0","v1.9.0-rc.0","v2.0.0-rc.0","v1.8.1","v1.8.0","v1.7.0","v1.6.0","v1.5.0","v1.4.1","v1.4.0","v1.3.1","v1.3.0","v1.2.0","v1.1.2","v1.1.1","v1.1.0","v1.0.1","v1.0.0","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.2.0","v0.1.2","v0.1.1","v0.1.0"]}],"references":["https://github.com/ericmj/decimal/security/advisories/GHSA-rhv4-8758-jx7v","https://cna.erlef.org/cves/CVE-2026-32686.html","https://osv.dev/vulnerability/EEF-CVE-2026-32686","https://github.com/ericmj/decimal/commit/bc11f4a2b6fb61fc1360a0ab4e79141bba918841","https://github.com/ericmj/decimal/commit/6a523f3a73b8c9974540e21c7aa88f1258bb35ae","https://hex.pm/packages/decimal"],"sources":[{"name":"CVE","id":"CVE-2026-32686","modified":"2026-11-19T08:33:10.488Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-32686"},{"name":"OSV","id":"EEF-CVE-2026-32686","modified":"2026-11-20T06:01:01.655177488Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-32686"}],"assessments":[{"source":"EEF","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9},{"source":"OSV","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9}],"cve":{"records":[{"id":"CVE-2026-32686","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-03-13T09:12:14.474Z","published":"2026-05-07T14:04:47.222Z","modified":"2026-11-19T08:33:10.488Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-19T08:33:10.488Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-05-08T22:43:03.396Z"}],"references":[{"url":"https://github.com/ericmj/decimal/security/advisories/GHSA-rhv4-8758-jx7v","tags":["vendor-advisory","related"],"source":"EEF"},{"url":"https://cna.erlef.org/cves/CVE-2026-32686.html","tags":["related"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-32686","tags":["related"],"source":"EEF"},{"url":"https://github.com/ericmj/decimal/commit/bc11f4a2b6fb61fc1360a0ab4e79141bba918841","tags":["related"],"source":"EEF"},{"url":"https://github.com/ericmj/decimal/commit/6a523f3a73b8c9974540e21c7aa88f1258bb35ae","tags":["patch"],"source":"EEF"},{"url":"https://github.com/ericmj/decimal/security/advisories/GHSA-rhv4-8758-jx7v","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-400","description":"CWE-400 Uncontrolled Resource Consumption","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ericmj:decimal:*:*:*:*:*:*:*:*","versionEndExcluding":"3.0.0","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-05-08T22:42:13.343081Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"yes"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"ericmj","name":"decimal","platforms":[],"versions":[{"version":"0.1.0","status":"affected","lessThan":"3.0.0","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/decimal","packageIdentity":{"ecosystem":"Hex","name":"decimal"},"cpes":["cpe:2.3:a:ericmj:decimal:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-32686"},{"vendor":"ericmj","name":"decimal","platforms":[],"versions":[{"version":"bc11f4a2b6fb61fc1360a0ab4e79141bba918841","status":"affected","lessThan":"6a523f3a73b8c9974540e21c7aa88f1258bb35ae","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ericmj/decimal","cpes":["cpe:2.3:a:ericmj:decimal:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-32686"}],"remediation":[],"observedAt":"2026-11-20T07:23:21.727Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T13:00:31.692Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-21T04:50:41.392Z","attemptedAt":"2026-11-21T04:50:41.392Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-21T04:45:32.670Z","attemptedAt":"2026-11-21T04:45:32.670Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-21T04:25:32.946Z","attemptedAt":"2026-11-21T04:25:32.946Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-21T04:10:31.860Z","attemptedAt":"2026-11-21T04:10:31.860Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-32686","url":"https://www.first.org/epss/","probability":0.00484,"percentile":0.42646,"date":"2026-11-20","checkedAt":"2026-11-21T04:10:31.860Z"},{"source":"ENISA EUVD","id":"EUVD-2026-28376","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-28376","modified":"Nov 19, 2026, 8:33:10 AM","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","checkedAt":"2026-11-21T04:25:32.946Z"},{"source":"GitHub Advisory Database","id":"GHSA-rhv4-8758-jx7v","url":"https://github.com/advisories/GHSA-rhv4-8758-jx7v","modified":"2026-08-05T12:40:53Z","checkedAt":"2026-11-21T04:45:32.670Z"},{"source":"NVD","id":"CVE-2026-32686","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32686","modified":"2026-10-26T20:10:00.160","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","checkedAt":"2026-11-21T04:50:41.392Z"}],"aiSummary":{"text":"The decimal library has an unbounded exponent vulnerability, allowing unauthenticated remote Denial of Service. Versions from 0.1.0 before 3.0.0 are affected. An attacker can cause an out-of-memory crash with a single malicious request.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-19T09:06:12.594Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-32686"},{"name":"OSV","url":"https://osv.dev/vulnerability/EEF-CVE-2026-32686"}]}}