# CVE-2026-82740: Ash.Type ignores outer array constraints on nested {:array, {:array, type}} inputs

- 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.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-01T03:29:11.804Z
- Modified: 2026-11-25T06:30:10.172Z
- Also known as: EEF-CVE-2026-82740, GHSA-v29m-p28g-w5fc
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## Description

Improper Input Validation vulnerability in ash-project ash fails to enforce the outer array constraints on a doubly-nested {:array, {:array, type}} attribute, letting invalid input pass validation.

Ash.Type.apply_constraints/3 (lib/ash/type/type.ex) handled the {:array, {:array, type}} case by mapping only the inner {:array, type} constraints over each element, so constraints declared on the outer array (such as min_length, max_length, and nil_items?) were never applied. An attacker could submit an outer list that violates those constraints (too many elements, or nil entries where disallowed) and have it accepted and persisted. The fix enforces the outer array constraints and adds explicit handling for nil and non-list inputs.

This issue affects ash: from 2.16.1 before 3.32.2.

(As written by CVE List.)

## Affected

- ash: from 2.16.1 before 3.32.2
- ash-project/ash: from 7b50a401d85018371659e51c34c89d7e1d0c2ac9 before c85ccff7dc6e3b0b3e40ad788b0056b3b6bee5ce
- ash (Hex): from 2.16.1 before 3.32.2
- https://github.com/ash-project/ash: from 7b50a401d85018371659e51c34c89d7e1d0c2ac9 before c85ccff7dc6e3b0b3e40ad788b0056b3b6bee5ce

## 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-v29m-p28g-w5fc> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-82740.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-82740> (related)
- <https://github.com/ash-project/ash/commit/7b50a401d85018371659e51c34c89d7e1d0c2ac9> (related, web)
- <https://github.com/ash-project/ash/commit/c85ccff7dc6e3b0b3e40ad788b0056b3b6bee5ce> (fix, patch)
- <https://hex.pm/packages/ash> (package)

## Sources

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

---

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