cve.bz

CVE-2026-97853 ericmj decimal

6.9 mediumEPSS 0.1%Fix available

Medium (6.9) in ericmj decimal. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in decimal 3.1.2.

On this page
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.

Severity

CVSS 4.0

6.9 medium
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
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 3rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-789 Memory Allocation with Excessive Size Value
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • decimal (Hex): fixed in 3.1.2

Ask an AI about this CVE

Show the promptExplain CVE-2026-97853 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-97853?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-97853?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-97853 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ericmj decimalfrom 0.1.0 before 3.1.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
EEF-CVE-2026-97853Hexdecimal>=0.1.0 <3.1.23.1.2
EEF-CVE-2026-97853v3.1.1, v3.1.0, v2.4.0, v3.0.0, v2.3.0 and 30 moreno fix published

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate because successful exploitation is contingent on an application processing unvalidated, user-supplied precision values, limiting the impact strictly to a denial of service. When an overly large scale value is processed during arithmetic rounding operations, the underlying runtime may consume excessive memory and crash the affected service. Because confidentiality and data integrity remain unaffected and the issue cannot be triggered without specific application exposure, the risk to Red Hat environments is reduced.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-97853.

References

Check your stackJSON