Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-97853

MEDIUM 6.9EPSS 4%

Unbounded allocation in decimal Decimal.round/3 driven by the places argument enables DoS

Mitigation

  • Upgrade decimal to 3.1.2 or later.
  • Vendor workaround: Bound places before calling Decimal.round/2,3, for example to -34..34 or to the scales the application supports.

Who should check

  • Anyone running ericmj decimal >= 0.1.0, < 3.1.2
  • Anyone running ericmj decimal >= 05bb73eb40ddef24eda782d905766f56a3660522, < *

Vulnerability facts

Affected
ericmj decimal >= 0.1.0, < 3.1.2; ericmj decimal >= 05bb73eb40ddef24eda782d905766f56a3660522, < *
Fixed in
ericmj decimal 3.1.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.9 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.18% chance of exploitation in 30 days (percentile 4, 2026-11-26)
CWE
CWE-789
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
ericmj decimal>= 0.1.0, < 3.1.2—cvelist
ericmj decimal>= 05bb73eb40ddef24eda782d905766f56a3660522, < *—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-97853. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97853.md
Affected: ericmj decimal >= 0.1.0, < 3.1.2; ericmj decimal >= 05bb73eb40ddef24eda782d905766f56a3660522, < *
Fixed in: ericmj decimal 3.1.2

Steps:
1. Search this machine and project for ericmj decimal: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-97853 being exploited?

There is no confirmed exploitation: CVE-2026-97853 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-97853?

Medium: CVSS 6.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-97853?

ericmj decimal >= 0.1.0, < 3.1.2; ericmj decimal >= 05bb73eb40ddef24eda782d905766f56a3660522, < *.

Is there a fix for CVE-2026-97853?

Yes. Fixed in ericmj decimal 3.1.2. Upgrade decimal to 3.1.2 or later. Vendor workaround: Bound places before calling Decimal.round/2,3, for example to -34..34 or to the scales the application supports.

How do I check if I'm affected by CVE-2026-97853?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors