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

- Severity: Medium 5.9 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-01T03:19:36.579Z
- Modified: 2026-11-25T06:30:10.252Z
- Also known as: EEF-CVE-2026-82735, GHSA-mq7g-pffw-m8xh
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## Description

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.

(As written by CVE List.)

## Affected

- ash: from 0.10.0 before 3.32.2
- ash-project/ash: from 05848d5f4affe60fddd812222a18ada080c0813b before 14928412a1a94a69c47df8e98920d3a2b09cdec4
- ash (Hex): from 0.10.0 before 3.32.2
- https://github.com/ash-project/ash: from 05848d5f4affe60fddd812222a18ada080c0813b before 14928412a1a94a69c47df8e98920d3a2b09cdec4

## Every score

- EEF: CVSS:4.0 5.9 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/ash-project/ash/security/advisories/GHSA-mq7g-pffw-m8xh> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-82735.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-82735> (related)
- <https://github.com/ash-project/ash/commit/05848d5f4affe60fddd812222a18ada080c0813b> (related, web)
- <https://github.com/ash-project/ash/commit/14928412a1a94a69c47df8e98920d3a2b09cdec4> (fix, patch)
- <https://hex.pm/packages/ash> (package)

## Sources

- CVE List: [CVE-2026-82735](https://www.cve.org/CVERecord?id=CVE-2026-82735), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-82735](https://osv.dev/vulnerability/EEF-CVE-2026-82735), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-82735](https://nvd.nist.gov/vuln/detail/CVE-2026-82735), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-82735 · Whole record: https://cve.day/CVE-2026-82735.json · Rebuilt by cve.day 2026-11-25T22:59:35.903Z
