# CVE-2026-96581: An upsert on the primary key in Ash ignores attribute multitenancy, so one tenant can read, overwrite and take over another tenant's records

- Severity: High 7.6 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/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.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-10-26T07:20:07.186Z
- Modified: 2026-11-27T17:23:03.127Z
- Also known as: EEF-CVE-2026-96581, GHSA-vw7c-67pf-gh96
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: EEF

## Description

Authorization Bypass Through User-Controlled Key vulnerability in ash-project ash allows a user of one tenant to read, overwrite and take over another tenant's records via an upserting create action.

Under attribute multitenancy, Ash.Actions.Create (lib/ash/actions/create/create.ex) and Ash.Actions.Create.Bulk (lib/ash/actions/create/bulk.ex) upserted on the primary key, or on an all_tenants? identity, without scoping the conflicting record to the request's tenant. A caller of a create action with upsert? true that accepts the primary key, supplying a record id from another tenant, updated that record's upsert fields and received all of its attributes in the result. With the default upsert fields the tenant attribute was written too, moving the record into the caller's tenant. Read and update policies do not run for upserts, and tenant-scoped create policies pass because the tenant is the caller's own.

This issue affects ash: from 1.22.0 before 3.37.2.

(As written by CVE List.)

## Affected

- ash: from 1.22.0 before 3.37.2
- ash-project/ash: from 2333d01ddf37e5909769a513059b27e3183331c5 before c9f0cdb31e7c084def05f3f5be69dd7bb7721754
- ash (Hex): from 1.22.0 before 3.37.2
- https://github.com/ash-project/ash: from 2333d01ddf37e5909769a513059b27e3183331c5 before c9f0cdb31e7c084def05f3f5be69dd7bb7721754

## Every score

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

## References

- <https://github.com/ash-project/ash/security/advisories/GHSA-vw7c-67pf-gh96> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-96581.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-96581> (related)
- <https://github.com/ash-project/ash/commit/2333d01ddf37e5909769a513059b27e3183331c5> (related, web)
- <https://github.com/ash-project/ash/commit/c9f0cdb31e7c084def05f3f5be69dd7bb7721754> (fix, patch)
- <https://hex.pm/packages/ash> (package)

## Sources

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

---

Page: https://cve.day/CVE-2026-96581 · Whole record: https://cve.day/CVE-2026-96581.json · Rebuilt by cve.day 2026-11-27T17:37:25.184Z
