{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Ash.Actions.Create'","'Elixir.Ash.Actions.Create.Bulk'","'Elixir.Ash.DataLayer.Ets'","'Elixir.Ash.DataLayer.Mnesia'"],"packageName":"ash","packageURL":"pkg:hex/ash","product":"ash","programFiles":["lib/ash/actions/create/create.ex","lib/ash/actions/create/bulk.ex","lib/ash/data_layer/ets/ets.ex","lib/ash/data_layer/mnesia/mnesia.ex"],"programRoutines":[{"name":"'Elixir.Ash.Actions.Create':run/4"},{"name":"'Elixir.Ash.Actions.Create.Bulk':run/5"},{"name":"'Elixir.Ash.DataLayer.Ets':upsert/4"},{"name":"'Elixir.Ash.DataLayer.Mnesia':upsert/4"}],"repo":"https://github.com/ash-project/ash","vendor":"ash-project","versions":[{"lessThan":"3.37.2","status":"affected","version":"1.22.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Ash.Actions.Create'","'Elixir.Ash.Actions.Create.Bulk'","'Elixir.Ash.DataLayer.Ets'","'Elixir.Ash.DataLayer.Mnesia'"],"packageName":"ash-project/ash","packageURL":"pkg:github/ash-project/ash","product":"ash","programFiles":["lib/ash/actions/create/create.ex","lib/ash/actions/create/bulk.ex","lib/ash/data_layer/ets/ets.ex","lib/ash/data_layer/mnesia/mnesia.ex"],"programRoutines":[{"name":"'Elixir.Ash.Actions.Create':run/4"},{"name":"'Elixir.Ash.Actions.Create.Bulk':run/5"},{"name":"'Elixir.Ash.DataLayer.Ets':upsert/4"},{"name":"'Elixir.Ash.DataLayer.Mnesia':upsert/4"}],"repo":"https://github.com/ash-project/ash","vendor":"ash-project","versions":[{"lessThan":"c9f0cdb31e7c084def05f3f5be69dd7bb7721754","status":"affected","version":"2333d01ddf37e5909769a513059b27e3183331c5","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Reachable when a resource uses attribute multitenancy and exposes to callers of one tenant a create action with <code>upsert? true</code> that either upserts on the primary key (no <code>upsert_identity</code>) and accepts it, or upserts on an <code>all_tenants?</code> identity, and the caller knows or can enumerate a key belonging to another tenant (for example a serial integer id, or an id from a shared link or export).</p>"},{"base64":false,"type":"text/markdown","value":"Reachable when a resource uses attribute multitenancy and exposes to callers of one tenant a create action with `upsert? true` that either upserts on the primary key (no `upsert_identity`) and accepts it, or upserts on an `all_tenants?` identity, and the caller knows or can enumerate a key belonging to another tenant (for example a serial integer id, or an id from a shared link or export)."}],"value":"Reachable when a resource uses attribute multitenancy and exposes to callers of one tenant a create action with upsert? true that either upserts on the primary key (no upsert_identity) and accepts it, or upserts on an all_tenants? identity, and the caller knows or can enumerate a key belonging to another tenant (for example a serial integer id, or an id from a shared link or export)."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","versionEndExcluding":"3.37.2","versionStartIncluding":"1.22.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Will Townsend"},{"lang":"en","type":"reporter","value":"Will Townsend"},{"lang":"en","type":"remediation developer","value":"Zach Daniel / Ash Project"}],"dateAssigned":"2026-10-26T05:14:04.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>\n<p>Under attribute multitenancy, <code>Ash.Actions.Create</code> (<code>lib/ash/actions/create/create.ex</code>) and <code>Ash.Actions.Create.Bulk</code> (<code>lib/ash/actions/create/bulk.ex</code>) upserted on the primary key, or on an <code>all_tenants?</code> identity, without scoping the conflicting record to the request's tenant. A caller of a create action with <code>upsert? true</code> 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.</p>\n<p>This issue affects ash: from 1.22.0 before 3.37.2.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nUnder 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.\n\nThis issue affects ash: from 1.22.0 before 3.37.2."}],"value":"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.\n\nUnder 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.\n\nThis issue affects ash: from 1.22.0 before 3.37.2."}],"impacts":[{"capecId":"CAPEC-1","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>A signed-in user of one tenant posts another tenant's record id to an upserting create action, receives that record's attributes, overwrites its upsert fields, and with the default upsert fields moves it into their own tenant.</p>"},{"base64":false,"type":"text/markdown","value":"A signed-in user of one tenant posts another tenant's record id to an upserting create action, receives that record's attributes, overwrites its upsert fields, and with the default upsert fields moves it into their own tenant."}],"value":"A signed-in user of one tenant posts another tenant's record id to an upserting create action, receives that record's attributes, overwrites its upsert fields, and with the default upsert fields moves it into their own tenant."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":7.6,"baseSeverity":"HIGH","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-639","description":"CWE-639 Authorization Bypass Through User-Controlled Key","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-26T07:20:07.186Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"An upsert on the primary key in Ash ignores attribute multitenancy, so one tenant can read, overwrite and take over another tenant's records","tags":["vendor-advisory","related"],"url":"https://github.com/ash-project/ash/security/advisories/GHSA-vw7c-67pf-gh96"},{"name":"EEF CNA record for CVE-2026-96581","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-96581.html"},{"name":"OSV record EEF-CVE-2026-96581","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-96581"},{"name":"Introducing commit 2333d01 in ash-project/ash","tags":["related"],"url":"https://github.com/ash-project/ash/commit/2333d01ddf37e5909769a513059b27e3183331c5"},{"name":"Fix commit c9f0cdb in ash-project/ash","tags":["patch"],"url":"https://github.com/ash-project/ash/commit/c9f0cdb31e7c084def05f3f5be69dd7bb7721754"}],"source":{"discovery":"EXTERNAL"},"title":"An upsert on the primary key in Ash ignores attribute multitenancy, so one tenant can read, overwrite and take over another tenant's records","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Add <code>upsert_condition expr(&lt;tenant attribute&gt; == ^tenant())</code> to every create action that upserts on the primary key or on an <code>all_tenants?</code> identity, and do not combine it with <code>return_skipped_upsert?</code>. An upsert into another tenant's record then fails with <code>Ash.Error.Changes.StaleRecord</code> (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.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-96581","datePublished":"2026-10-26T07:20:07.186Z","dateReserved":"2026-10-25T17:30:02.206Z","dateUpdated":"2026-10-26T07:20:07.186Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}