CVE Catalog

CVE-2026-82735

MediumCVSS 5.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

3th percentile - higher than 3% of all known CVEs

Summary

Uncontrolled resource consumption vulnerability in the ash library allows an attacker to force an expensive regular expression to run on input that should have been rejected by length constraints. The Ash.Type.String.apply_constraints/2 validation did not enforce length limits before applying the :match pattern, enabling catastrophic regex evaluation on large inputs. The fix skips the regex when a length constraint is violated.

Risk Assessment

An attacker can cause significant CPU load on the server, leading to denial of service (DoS) by sending specially crafted requests.

Recommendation

Upgrade the ash library to version 3.32.2 or later to remediate the vulnerability.

Other vulnerabilities in ash

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS