# 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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.6
- **CVSS:** 7.6 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.45% (percentile 31, 2026-11-28)
- **CWE:** CWE-639
- **Published:** 2026-10-26T07:20:07.186Z
- **Modified:** 2026-11-19T08:10:32.644Z

## Who should check

- Anyone running ash-project ash \>= 1.22.0, \< 3.37.2
- Anyone running ash-project ash \>= 2333d01ddf37e5909769a513059b27e3183331c5, \< c9f0cdb31e7c084def05f3f5be69dd7bb7721754

## 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.

## Affected and fixed versions

- ash-project ash: \>= 1.22.0, \< 3.37.2 (cvelist)
- ash-project ash: \>= 2333d01ddf37e5909769a513059b27e3183331c5, \< c9f0cdb31e7c084def05f3f5be69dd7bb7721754 (cvelist)

## Mitigation

- Upgrade ash to 3.37.2 or later.
- Vendor workaround: Add upsert\_condition expr(\<tenant attribute\> == ^tenant()) to every create action that upserts on the primary key or on an all\_tenants? identity, and do not combine it with return\_skipped\_upsert?. An upsert into another tenant's record then fails with Ash.Error.Changes.StaleRecord (or is skipped in a bulk create) and leaves that record unchanged. This does not help on the Mnesia data layer, which ignores upsert conditions in affected versions.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-96581. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-96581.md
Affected: ash-project ash >= 1.22.0, < 3.37.2; ash-project ash >= 2333d01ddf37e5909769a513059b27e3183331c5, < c9f0cdb31e7c084def05f3f5be69dd7bb7721754
Fixed in: ash-project ash 3.37.2

Steps:
1. Search this machine and project for ash-project ash: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-96581 being exploited?

There is no confirmed exploitation: CVE-2026-96581 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-96581?

High: CVSS 7.6 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-96581?

ash-project ash \>= 1.22.0, \< 3.37.2; ash-project ash \>= 2333d01ddf37e5909769a513059b27e3183331c5, \< c9f0cdb31e7c084def05f3f5be69dd7bb7721754.

### Is there a fix for CVE-2026-96581?

Yes. Fixed in ash-project ash 3.37.2. Upgrade ash to 3.37.2 or later. Vendor workaround: Add upsert\_condition expr(\<tenant attribute\> == ^tenant()) to every create action that upserts on the primary key or on an all\_tenants? identity, and do not combine it with return\_skipped\_upsert?. An upsert into another tenant's record then fails with Ash.Error.Changes.StaleRecord (or is skipped in a bulk create) and leaves that record unchanged. This does not help on the Mnesia data layer, which ignores upsert conditions in affected versions.

### How do I check if I'm affected by CVE-2026-96581?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ash-project/ash/security/advisories/GHSA-vw7c-67pf-gh96>
- patch: <https://github.com/ash-project/ash/commit/2333d01ddf37e5909769a513059b27e3183331c5>
- patch: <https://github.com/ash-project/ash/commit/c9f0cdb31e7c084def05f3f5be69dd7bb7721754>
- other: <https://cna.erlef.org/cves/CVE-2026-96581.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-96581>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-96581>

HTML: <https://flawdb.com/CVE-2026-96581> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-96581>
