# CVE-2026-82736: Ash.Type.CiString validates length and match constraints before case folding, allowing constraint bypass

- Severity: Low 2.1 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/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:21:47.332Z
- Modified: 2026-11-25T06:30:15.997Z
- Also known as: EEF-CVE-2026-82736, GHSA-gg9w-7593-hxg9
- Weaknesses: CWE-180
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## Description

Incorrect Behavior Order: Validate Before Canonicalize vulnerability in ash-project ash lets an attacker store a case-insensitive string value that violates its length or match constraints.

Ash.Type.CiString.apply_constraints/2 (lib/ash/type/ci_string.ex) validated the max_length, min_length, and match constraints against the value as submitted, while the type case-folds the string (per its casing) for storage and comparison. Because validation ran before folding, an attacker can submit a value whose folded form breaks a constraint but whose original form passes: for example, against a match pattern requiring uppercase, an uppercase value that is stored lowercased persists a value the pattern rejects. The fix case-folds the value at the start of apply_constraints/2, so the constraints are checked against the form that is actually stored.

This issue affects ash: from 1.29.0-rc0 before 3.32.2.

(As written by CVE List.)

## Affected

- ash: from 1.29.0-rc0 before 3.32.2
- ash-project/ash: from f6f5d194bfc7802bd32e48bf2eabd2d97a0109a4 before d8320b0127c8ef453679d70e5dd23a9506951d21
- ash (Hex): from 1.29.0-rc0 before 3.32.2
- https://github.com/ash-project/ash: from f6f5d194bfc7802bd32e48bf2eabd2d97a0109a4 before d8320b0127c8ef453679d70e5dd23a9506951d21

## Every score

- EEF: CVSS:4.0 2.1 Low `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/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:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/ash-project/ash/security/advisories/GHSA-gg9w-7593-hxg9> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-82736.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-82736> (related)
- <https://github.com/ash-project/ash/commit/f6f5d194bfc7802bd32e48bf2eabd2d97a0109a4> (related, web)
- <https://github.com/ash-project/ash/commit/d8320b0127c8ef453679d70e5dd23a9506951d21> (fix, patch)
- <https://hex.pm/packages/ash> (package)

## Sources

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

---

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