PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-97853 ericmj CVE debrief

A Memory Allocation with Excessive Size Value vulnerability in the ericmj decimal library can lead to Denial of Service. The vulnerability arises from the Decimal.round/3 function's handling of the places argument, which can cause excessive memory allocation. This issue affects decimal versions from 0.1.0 before 3.1.2. The vulnerability is triggered when a user-supplied number of decimal places or scale is passed to Decimal.round/2 or Decimal.round/3 without bounding, potentially leading to Denial of Service attacks. Defenders should assess their exposure and take steps to prevent potential attacks.

Vendor
ericmj
Product
decimal
CVSS
MEDIUM 6.9
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-10
Original CVE updated
2026-10-10
Advisory published
2026-10-10
Advisory updated
2026-10-10

Who should care

Defenders responsible for maintaining applications that use the ericmj decimal library, particularly those that pass user-supplied numbers of decimal places or scales to Decimal.round/2 or Decimal.round/3, should assess their exposure and take steps to prevent potential Denial of Service attacks.

Why it matters

Defenders should prioritize verifying and updating to version 3.1.2 or later of the decimal library to prevent potential Denial of Service attacks. Applications that pass user-supplied numbers of decimal places or scales to Decimal.round/2 or Decimal.round/3 without bounding them are exposed. The input limits added for CVE-2026-32686 do not cover the places argument.

  • Denial of Service due to excessive memory allocation
  • Potential for BEAM VM to be killed

Technical summary

The Decimal.round/3 function in the ericmj decimal library builds the full result for the requested number of decimal places before applying context precision, leading to excessive memory allocation. A single call with a large number of decimal places can allocate significant memory, potentially exhausting available memory and causing the BEAM VM to be killed. The input limits added for CVE-2026-32686 do not cover the places argument, making applications that pass user-supplied numbers of decimal places or scales to Decimal.round/2 or Decimal.round/3 without bounding them exposed.

Defensive priority

Defenders should prioritize verifying and updating to version 3.1.2 or later of the decimal library to prevent potential Denial of Service attacks.

Recommended defensive actions

  • Verify the version of the decimal library in use and update to version 3.1.2 or later if necessary.
  • Review application code to ensure that user-supplied numbers of decimal places or scales are bounded before being passed to Decimal.round/2 or Decimal.round/3.
  • Implement input validation and sanitization to prevent excessive memory allocation.
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.

Evidence notes

The CVE record and source references provide details on the vulnerability, including its impact on the ericmj decimal library and potential Denial of Service attacks. The vulnerability is caused by the Decimal.round/3 function's handling of the places argument, which can lead to excessive memory allocation. The input limits added for CVE-2026-32686 do not cover the places argument, making applications that pass user-supplied numbers of decimal places or scales to Decimal.round/2 or Decimal.round/3 without bounding them exposed. Defend

Sources and references

Verified primary and authoritative sources

  • CVE-2026-97853 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-97853

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-97853 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-97853

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://cna.erlef.org/cves/CVE-2026-97853.html

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db

  • Source reference

    Unverified legacy reference

    URL: https://github.com/ericmj/decimal/commit/05bb73eb40ddef24eda782d905766f56a3660522

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db

  • Source reference

    Unverified legacy reference

    URL: https://github.com/ericmj/decimal/commit/338f42c8cf6a9749ab70c5af04734c6050ca3dc6

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db

  • Source reference

    Unverified legacy reference

    URL: https://github.com/ericmj/decimal/commit/3c90af4c3c2dfa4bb4c138760a326dd0eb91822b

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db

  • Source reference

    Unverified legacy reference

    URL: https://github.com/ericmj/decimal/security/advisories/GHSA-6c27-994x-c52f

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db

  • Source reference

    Unverified legacy reference

    URL: https://osv.dev/vulnerability/EEF-CVE-2026-97853

    6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.