CVE-2026-97853 json
Unbounded allocation in decimal Decimal.round/3 driven by the places argument enables DoS
published 2026-10-10 29 d ago modified 2026-10-15 24 d ago also EEF-CVE-2026-97853 , GHSA-6c27-994x-c52f , EUVD-2026-96426
- cvss
- 6.9
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 3%
- public exploits
- 0
- none known
Summary
Memory Allocation with Excessive Size Value vulnerability in ericmj decimal allows Denial of Service.
Decimal.round/3 builds the full result for the requested number of decimal places before the context precision (34 digits by default) is applied, so its cost grows with the places argument instead of with the size of the result. For positive places it appends places zero digits to the coefficient as a charlist before converting it to an integer, and for negative places it builds a charlist of -places zero digits. A single call such as Decimal.round(Decimal.new("1.5"), -50_000_000) allocates about 5.5 GB of memory, which can exhaust available memory and get the BEAM VM killed. The oldest releases instead loop once per decimal place, consuming CPU in proportion to places.
Any application that passes a user-supplied number of decimal places or scale to Decimal.round/2 or Decimal.round/3 without bounding it is exposed. The input limits added for CVE-2026-32686 do not cover the places argument.
This issue affects decimal: from 0.1.0 before 3.1.2.
Patch / fix
- hex decimal 3.1.2
- ericmj decimal 3.1.2
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-97853 updated cvss 6.2
decimal: decimal: Denial of Service via unbounded rounding operations
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 24 d ago
Exploit prediction
0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | 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 |
| CNA | 4.0 | 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| hex | decimal | >=0.1.0, <3.1.2 |
3.1.2 |
Affected products
- ericmj decimal
Classification
- Weakness
-
- CWE-789 Memory Allocation with Excessive Size Value
References
-
github.com
/ericmj/decimal/commit/05bb73eb40ddef24eda782d905766f56a3660522
related, web
-
github.com
/ericmj/decimal/commit/338f42c8cf6a9749ab70c5af04734c6050ca3dc6
patch
-
github.com
/ericmj/decimal/commit/3c90af4c3c2dfa4bb4c138760a326dd0eb91822b
patch
-
github.com
/ericmj/decimal/security/advisories/GHSA-6c27-994x-c52f
vendor-advisory, advisory
-
cna.erlef.org
/cves/CVE-2026-97853.html
related, web
-
osv.dev
/vulnerability/EEF-CVE-2026-97853
related
-
hex.pm
/packages/decimal
package
Sources
- CVE List CVE-2026-97853
- NVD CVE-2026-97853
- OSV EEF-CVE-2026-97853
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.