CVE-2026-97853Ericmj Decimal vulnerability
CVSS score
6.9
Medium
CVSS 4.0 from 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Exploit probability (EPSS)
0.14%
0.14% chance of exploitation in the next 30 days, higher than 3.16% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
How to fix it, step by step
Check whether you're affected
Find every system running ericmj Decimal and compare its version with the affected versions.
Update to a fixed version
- Update Decimal to 3.1.2 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. 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 products
| Affected products | Versions |
|---|---|
| ericmj Decimal | ≥ 0.1.0, < 3.1.2 · 05bb73eb40ddef24eda782d905766f56a3660522 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-97853 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.1% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-97853?
CVE-2026-97853 has a CVSS 4.0 base score of 6.9 (medium).
Which versions are affected?
Ericmj Decimal (≥ 0.1.0, < 3.1.2; 05bb73eb40ddef24eda782d905766f56a3660522)
Is there a patch for CVE-2026-97853?
The official record links to vendor advisories or patches; see “What to do” above.
References
- cna.erlef.org/cves/CVE-2026-97853.html
- github.com/ericmj/decimal/commit/05bb73eb40ddef24eda782d905766f56a3660522
- github.com/ericmj/decimal/commit/338f42c8cf6a9749ab70c5af04734c6050ca3dc6
- github.com/ericmj/decimal/commit/3c90af4c3c2dfa4bb4c138760a326dd0eb91822b
- github.com/ericmj/decimal/security/advisories/GHSA-6c27-994x-c52f
- osv.dev/vulnerability/EEF-CVE-2026-97853
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.