CVE-2026-82735: Match regex runs on over-length input in Ash.Type.String, enabling regex denial of service

Published Sep 1, 2026
·
Updated

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.applyconstraints/2 (lib/ash/type/string.ex) evaluated the :match regex regardless of the minlength and maxlength 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 Software

1 affected component
ash-project ash>0.10.0<=3.32.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ash to a version that resolves this vulnerability.

    Fixed in 3.32.2
  2. Operational

    After upgrading, ensure Ash.Type.String (lib/ash/type/string.ex) no longer evaluates the :match regex when min_length/max_length constraints on the same attribute are violated; this prevents regex from running on over-length input and eliminates the described regex DoS.

Event History

Sep 1, 2026
CVE Published
via MITRE·03:19 AM
Data Sourced
via MITRE·03:19 AM
DescriptionWeakness

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203