Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 75%

CVE-2026-32686: CWE-400 Uncontrolled Resource Consumption in ericmj decimal

0
Medium
VulnerabilityCVE-2026-32686cvecve-2026-32686cwe-400
Published: 05/07/2026 (05/07/2026, 14:04:47 UTC)
Source: CVE Database V5
Vendor/Project: ericmj
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

decimal
pkg:hex/decimal
Affected versions
=0.1.0<3.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/27/2026, 20:05:27 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses