# CVE-2026-32686: Unbounded exponent in decimal enables unauthenticated DoS

- Severity: Medium 6.9 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-07T14:04:47.222Z
- Modified: 2026-11-25T17:23:05.376Z
- Also known as: GHSA-rhv4-8758-jx7v, EEF-CVE-2026-32686
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: EEF

## Description

Uncontrolled Resource Consumption vulnerability in ericmj decimal allows unauthenticated remote Denial of Service.

The 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/2M), Decimal.to_string/2M with :normalM or :xsdM format, Decimal.to_integer/1M, Decimal.round/3M, or Decimal.compare/3M with a threshold allocate memory proportional to the exponent value, which can exhaust available memory and crash the BEAM VM.

Any 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.

This issue affects decimal: from 0.1.0 before 3.0.0.

(As written by CVE List.)

## Affected

- decimal: from 0.1.0 before 3.0.0
- ericmj/decimal: from bc11f4a2b6fb61fc1360a0ab4e79141bba918841 before 6a523f3a73b8c9974540e21c7aa88f1258bb35ae
- decimal (Hex): from 0.1.0 before 3.0.0
- https://github.com/ericmj/decimal: from bc11f4a2b6fb61fc1360a0ab4e79141bba918841 before 6a523f3a73b8c9974540e21c7aa88f1258bb35ae

## Every score

- EEF: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/ericmj/decimal/security/advisories/GHSA-rhv4-8758-jx7v> (exploit, advisory, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-32686.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-32686> (related, web)
- <https://github.com/ericmj/decimal/commit/bc11f4a2b6fb61fc1360a0ab4e79141bba918841> (related, web)
- <https://github.com/ericmj/decimal/commit/6a523f3a73b8c9974540e21c7aa88f1258bb35ae> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32686> (advisory)
- <https://github.com/ericmj/decimal> (package)
- <https://github.com/ericmj/decimal/releases/tag/v2.4.0> (web)
- <https://github.com/ericmj/decimal/releases/tag/v3.0.0> (web)
- <https://hex.pm/packages/decimal> (package)

## Sources

- CVE List: [CVE-2026-32686](https://www.cve.org/CVERecord?id=CVE-2026-32686), CVE Terms of Use, modified 2026-11-19
- GitHub Advisory Database: [GHSA-rhv4-8758-jx7v](https://github.com/advisories/GHSA-rhv4-8758-jx7v), CC-BY-4.0, modified 2026-08-05
- Erlang Ecosystem Foundation: [EEF-CVE-2026-32686](https://osv.dev/vulnerability/EEF-CVE-2026-32686), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-32686](https://nvd.nist.gov/vuln/detail/CVE-2026-32686), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-32686 · Whole record: https://cve.day/CVE-2026-32686.json · Rebuilt by cve.day 2026-11-25T22:59:20.884Z
