CVE-2026-82735
Severity not reportedUncontrolled Resource Consumption vulnerability in ash-project ash allows an attacker to force an expensive regular expression to run on input that a length co…
Uncontrolled Resource Consumption vulnerability in ash-project ash allows an attacker to force an expensive regular expression to run on input that a length constraint should have already rejected. Ash.Type.String.apply_constraints/2 (lib/ash/type/string.ex) evaluated the :match regex regardless of the min_length and max_length constraints on the same attribute. Because the length check did not gate the regex, an over-length value that the length constraint rejects still had the pattern applied to it, so the length limit that would otherwise bound the work never constrained the regex input. Against a backtracking pattern this yields catastrophic regex evaluation on attacker-sized input, and even a linear pattern runs on arbitrarily large input, consuming CPU per request. The fix skips the :match regex whenever a length constraint is violated, making the two checks order-independent. This issue affects ash: from 0.10.0 before 3.32.2.
Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://cna.erlef.org/cves/CVE-2026-82735.html 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- https://github.com/ash-project/ash/commit/14928412a1a94a69c47df8e98920d3a2b09cdec4 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- https://github.com/ash-project/ash/security/advisories/GHSA-mq7g-pffw-m8xh 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- https://osv.dev/vulnerability/EEF-CVE-2026-82735 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
- https://github.com/ash-project/ash/security/advisories/GHSA-mq7g-pffw-m8xh 134c704f-9b21-4f2e-91b3-4a467353bcc0
