# CVE-2026-82742: Ash.Filter.Runtime materializes a combinatorial cross-product over to-many relationships, exhausting memory

- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-09-01T03:35:18.551Z
- Modified: 2026-11-25T06:30:16.004Z
- Also known as: EEF-CVE-2026-82742, GHSA-mgwj-c69v-6f83
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## Description

Uncontrolled Resource Consumption vulnerability in ash-project ash lets an attacker exhaust node memory by matching a filter that spans multiple to-many relationships in memory.

Ash.Filter.Runtime matches a filter against an in-memory record by first expanding the record into combinations of its related rows. flatten_relationships/2 (lib/ash/filter/runtime.ex) eagerly built the full Cartesian product across the filter's to-many relationship paths, so a record with K to-many relationships of M rows each materialized on the order of M^K scenarios before any predicate was checked. A filter or dataset that reaches several sizeable to-many relationships therefore allocates memory combinatorially and can exhaust the node. The fix streams the expansion lazily and short-circuits on the first matching scenario, bounding the work.

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 da07f009e889819ec410fa1f0f12534bfb9e21dd
- ash (Hex): from 1.29.0-rc0 before 3.32.2
- https://github.com/ash-project/ash: from f6f5d194bfc7802bd32e48bf2eabd2d97a0109a4 before da07f009e889819ec410fa1f0f12534bfb9e21dd

## 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-mgwj-c69v-6f83> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-82742.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-82742> (related)
- <https://github.com/ash-project/ash/commit/f6f5d194bfc7802bd32e48bf2eabd2d97a0109a4> (related, web)
- <https://github.com/ash-project/ash/commit/da07f009e889819ec410fa1f0f12534bfb9e21dd> (fix, patch)
- <https://hex.pm/packages/ash> (package)

## Sources

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

---

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