CVE-2026-82734

Non-finite Infinity/NaN decimal values bypass bounds constraints in Ash.Type.Decimal

Published Sep 1, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
Description
Improper Validation of Specified Quantity in Input vulnerability in ash-project ash allows an attacker to submit a non-finite decimal value that bypasses numeric bounds constraints or fails later operations on the value.

Ash.Type.Decimal cast input through Ecto's decimal cast in cast_input/2 and cast_stored/2 (lib/ash/type/decimal.ex) without checking that the resulting value is finite. Elixir's Decimal represents Infinity and NaN as valid structs, so a value such as "Infinity" or "NaN" passed casting and was persisted. Because NaN compares as false against every bound, min and max constraints do not reject it, and the stored special value later raises when used in Decimal arithmetic or is refused by the data layer, failing subsequent requests. The fix rejects any non-finite Decimal during casting.

This issue affects ash: from 1.28.0 before 3.32.2.

Analysis

AI-generated

Technical impact

The vulnerability arises because ash’s Decimal type accepts Elixir Decimal structs representing Infinity or NaN without verifying that the value is finite. These non‑finite values satisfy min and max bounds because NaN compares as false against all bounds, allowing them to be stored. When later used in arithmetic or processed by the data layer, they trigger errors, causing failures in subsequent requests. The resulting impact is a denial of service, potentially affecting all functionality that relies on Ash.Type.Decimal.

Affected Systems

The affected product is the open‑source Ash framework from ash‑project. Versions from 1.28.0 up to but not including 3.32.2 are impacted. The exact vendor is ash‑project and the product name is ash.

Risk and Exploitability

The CVSS score is 2.1, indicating low severity. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting a low likelihood of exploitation in the wild. The attack vector is inferred to be remote if the application exposes an API that accepts Decimal inputs, or local if unauthorized manipulation of input data is possible. Exploitation would require supplying a non‑finite value such as "Infinity" or "NaN" during input processing, which then bypasses bounds checks and leads to downstream failures. This indicates a limited exploitation scope, likely confined to environments where the vulnerable Ash version is used.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ash to version 3.32.2 or later which rejects non‑finite Decimal values during casting
  • If an upgrade is not immediately possible, implement a pre‑validation step to check that Decimal values are finite before passing them to Ash.Type.Decimal
  • Restart the application after applying the fix or after adding validation to ensure stale state is cleared

Generated by OpenCVE AI on September 1, 2026 at 04:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper Validation of Specified Quantity in Input vulnerability in ash-project ash allows an attacker to submit a non-finite decimal value that bypasses numeric bounds constraints or fails later operations on the value. Ash.Type.Decimal cast input through Ecto's decimal cast in cast_input/2 and cast_stored/2 (lib/ash/type/decimal.ex) without checking that the resulting value is finite. Elixir's Decimal represents Infinity and NaN as valid structs, so a value such as "Infinity" or "NaN" passed casting and was persisted. Because NaN compares as false against every bound, min and max constraints do not reject it, and the stored special value later raises when used in Decimal arithmetic or is refused by the data layer, failing subsequent requests. The fix rejects any non-finite Decimal during casting. This issue affects ash: from 1.28.0 before 3.32.2.
Title Non-finite Infinity/NaN decimal values bypass bounds constraints in Ash.Type.Decimal
First Time appeared Ash-project
Ash-project ash
Weaknesses CWE-1284
CPEs cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*
Vendors & Products Ash-project
Ash-project ash
References
Metrics cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 19, 2026, 8:37 AM
Reserved
Aug 31, 2026, 12:59 AM
Status
Deferred
Published
Sep 1, 2026, 4:18 AM
Modified
Nov 19, 2026, 9:18 AM