Skip to main content

Decimal

2 CVEs product

Monthly

CVE-2026-97853 Oct 10, 19:43 MEDIUM PATCH This Month

Unbounded memory allocation in the ericmj/decimal Elixir library lets an attacker who controls the 'places' argument of Decimal.round/2 or Decimal.round/3 exhaust host memory and get the BEAM VM killed; all releases from 0.1.0 up to (but not including) 3.1.2 are affected. The function materialises the entire rounded result before the 34-digit default context precision is applied, so a single call such as Decimal.round(Decimal.new("1.5"), -50_000_000) allocates roughly 5.5 GB, while the oldest releases instead spin one loop iteration per decimal place and burn CPU in proportion to the argument. The official CVSS 4.0 base score is 6.9 (availability-only, VC:N/VI:N/VA:H), our independent assessment rates it CVSS 3.1 7.5 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, and no public exploit code or confirmed active exploitation was identified at time of analysis. Exposure is conditional: the vulnerability is only reachable when a consuming application forwards an unbounded, user-supplied scale or decimal-place count into round/2 or round/3 - the input limits previously added for CVE-2026-32686 explicitly do not cover the places argument.

Denial Of Service Red Hat Elixir Decimal
NVD GitHub VulDB
CVSS 4.0
6.9
EPSS
0.1%
CVE-2026-32686 May 07, 14:04 MEDIUM POC PATCH GHSA This Month

Uncontrolled resource consumption in ericmj decimal library (versions 0.1.0 before 3.0.0) allows remote denial of service via maliciously crafted decimal values with extremely large exponents. When applications parse user-supplied decimal input and subsequently perform arithmetic operations, string formatting, rounding, or comparison, the library allocates memory proportional to the exponent magnitude without bounds, exhausting available memory and crashing the BEAM virtual machine. A single malicious request is sufficient to trigger an out-of-memory crash.

Denial Of Service Decimal
NVD GitHub VulDB
CVSS 4.0
6.9
EPSS
0.1%
EPSS 0% CVSS 6.9
MEDIUM PATCH This Month

Unbounded memory allocation in the ericmj/decimal Elixir library lets an attacker who controls the 'places' argument of Decimal.round/2 or Decimal.round/3 exhaust host memory and get the BEAM VM killed; all releases from 0.1.0 up to (but not including) 3.1.2 are affected. The function materialises the entire rounded result before the 34-digit default context precision is applied, so a single call such as Decimal.round(Decimal.new("1.5"), -50_000_000) allocates roughly 5.5 GB, while the oldest releases instead spin one loop iteration per decimal place and burn CPU in proportion to the argument. The official CVSS 4.0 base score is 6.9 (availability-only, VC:N/VI:N/VA:H), our independent assessment rates it CVSS 3.1 7.5 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, and no public exploit code or confirmed active exploitation was identified at time of analysis. Exposure is conditional: the vulnerability is only reachable when a consuming application forwards an unbounded, user-supplied scale or decimal-place count into round/2 or round/3 - the input limits previously added for CVE-2026-32686 explicitly do not cover the places argument.

Denial Of Service Red Hat Elixir +1
NVD GitHub VulDB
EPSS 0% CVSS 6.9
MEDIUM POC PATCH This Month

Uncontrolled resource consumption in ericmj decimal library (versions 0.1.0 before 3.0.0) allows remote denial of service via maliciously crafted decimal values with extremely large exponents. When applications parse user-supplied decimal input and subsequently perform arithmetic operations, string formatting, rounding, or comparison, the library allocates memory proportional to the exponent magnitude without bounds, exhausting available memory and crashing the BEAM virtual machine. A single malicious request is sufficient to trigger an out-of-memory crash.

Denial Of Service Decimal
NVD GitHub VulDB

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy