Decimal
Monthly
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.
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.
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.
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.