CVE-2026-32686: CWE-400 Uncontrolled Resource Consumption in ericmj decimal
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/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. 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.
AI Analysis
Technical Summary
The ericmj decimal library improperly handles decimal inputs with very large exponents, such as "1e1000000000", by not bounding the exponent size. When such inputs are processed through arithmetic functions (add, sub, div), string conversions (to_string with :normal or :xsd), integer conversion, rounding, or comparison, the library allocates memory proportional to the exponent value. This uncontrolled resource consumption can exhaust system memory and crash the BEAM virtual machine. The vulnerability affects versions from 0.1.0 up to but not including 3.0.0 and can be exploited remotely without authentication by submitting crafted decimal values.
Potential Impact
An attacker can cause a denial of service by sending a single malicious decimal input with a very large exponent to an application using the affected decimal library. This leads to excessive memory allocation during decimal operations, resulting in an out-of-memory crash of the BEAM VM. The impact is limited to denial of service; no information disclosure or code execution is indicated. The vulnerability requires the application to accept user-supplied decimal input and perform arithmetic or conversion operations on it.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, applications should implement input validation to restrict the size of decimal exponents accepted from untrusted sources to prevent excessive resource consumption. Avoid processing decimal inputs with extremely large exponents. Monitor for updates from the ericmj decimal library maintainers regarding patches or official mitigations.
CVE-2026-32686: CWE-400 Uncontrolled Resource Consumption in ericmj decimal
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/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. 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.
CVSS v4.0
Score 6.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The ericmj decimal library improperly handles decimal inputs with very large exponents, such as "1e1000000000", by not bounding the exponent size. When such inputs are processed through arithmetic functions (add, sub, div), string conversions (to_string with :normal or :xsd), integer conversion, rounding, or comparison, the library allocates memory proportional to the exponent value. This uncontrolled resource consumption can exhaust system memory and crash the BEAM virtual machine. The vulnerability affects versions from 0.1.0 up to but not including 3.0.0 and can be exploited remotely without authentication by submitting crafted decimal values.
Potential Impact
An attacker can cause a denial of service by sending a single malicious decimal input with a very large exponent to an application using the affected decimal library. This leads to excessive memory allocation during decimal operations, resulting in an out-of-memory crash of the BEAM VM. The impact is limited to denial of service; no information disclosure or code execution is indicated. The vulnerability requires the application to accept user-supplied decimal input and perform arithmetic or conversion operations on it.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, applications should implement input validation to restrict the size of decimal exponents accepted from untrusted sources to prevent excessive resource consumption. Avoid processing decimal inputs with extremely large exponents. Monitor for updates from the ericmj decimal library maintainers regarding patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-03-13T09:12:14.474Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fca37ecbff5d8610fd578b
Added to database: 05/07/2026, 14:36:46 UTC
Last enriched: 05/27/2026, 20:05:27 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 69
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.