{"id":"CVE-2026-96581","revision":null,"records":[{"revision":"c92ff28f49e046b9b2569737bf9beec9","observedAt":"2026-10-26T15:35:30.984+00:00","statement":{"source":"cve-program","id":"CVE-2026-96581","aliases":[],"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","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.\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.","state":0,"publishedAt":"2026-10-26T07:20:07.186+00:00","modifiedAt":"2026-10-26T14:35:19.745+00:00","affected":[{"ecosystem":"https://repo.hex.pm","name":"ash","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Ash.Actions.Create'\",\n                        \"'Elixir.Ash.Actions.Create.Bulk'\",\n                        \"'Elixir.Ash.DataLayer.Ets'\",\n                        \"'Elixir.Ash.DataLayer.Mnesia'\"\n                    ],\n                    \"packageName\": \"ash\",\n                    \"packageURL\": \"pkg:hex/ash\",\n                    \"product\": \"ash\",\n                    \"programFiles\": [\n                        \"lib/ash/actions/create/create.ex\",\n                        \"lib/ash/actions/create/bulk.ex\",\n                        \"lib/ash/data_layer/ets/ets.ex\",\n                        \"lib/ash/data_layer/mnesia/mnesia.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Ash.Actions.Create':run/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Ash.Actions.Create.Bulk':run/5\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Ash.DataLayer.Ets':upsert/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Ash.DataLayer.Mnesia':upsert/4\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/ash-project/ash\",\n                    \"vendor\": \"ash-project\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"3.37.2\",\n                            \"status\": \"affected\",\n                            \"version\": \"1.22.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"ash-project/ash","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Ash.Actions.Create'\",\n                        \"'Elixir.Ash.Actions.Create.Bulk'\",\n                        \"'Elixir.Ash.DataLayer.Ets'\",\n                        \"'Elixir.Ash.DataLayer.Mnesia'\"\n                    ],\n                    \"packageName\": \"ash-project/ash\",\n                    \"packageURL\": \"pkg:github/ash-project/ash\",\n                    \"product\": \"ash\",\n                    \"programFiles\": [\n                        \"lib/ash/actions/create/create.ex\",\n                        \"lib/ash/actions/create/bulk.ex\",\n                        \"lib/ash/data_layer/ets/ets.ex\",\n                        \"lib/ash/data_layer/mnesia/mnesia.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Ash.Actions.Create':run/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Ash.Actions.Create.Bulk':run/5\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Ash.DataLayer.Ets':upsert/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Ash.DataLayer.Mnesia':upsert/4\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/ash-project/ash\",\n                    \"vendor\": \"ash-project\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"c9f0cdb31e7c084def05f3f5be69dd7bb7721754\",\n                            \"status\": \"affected\",\n                            \"version\": \"2333d01ddf37e5909769a513059b27e3183331c5\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":7.6,"severity":"HIGH"}],"references":["https://github.com/ash-project/ash/security/advisories/GHSA-vw7c-67pf-gh96","https://cna.erlef.org/cves/CVE-2026-96581.html","https://osv.dev/vulnerability/EEF-CVE-2026-96581","https://github.com/ash-project/ash/commit/2333d01ddf37e5909769a513059b27e3183331c5","https://github.com/ash-project/ash/commit/c9f0cdb31e7c084def05f3f5be69dd7bb7721754"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-96581","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-96581","identifiers":["CVE-2026-96581"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-27T17:47:33.6124923+00:00","complete":true,"records":1758,"lastAttemptAt":"2026-10-27T17:47:33.6124923+00:00","lastSuccessAt":"2026-10-27T17:47:33.8177497+00:00","error":null,"lastVerifiedAt":"2026-10-27T17:47:33.8177523+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-187d2b72c94ceb8c4417f1032ec3109a3a3a7b730abadb561d8cdd2a96e04d27-1d364ac0cd434b550397ee70228a56931aa833d8a6b261c3e6bc70a57b06a0f6","complete":true,"records":415299,"lastAttemptAt":"2026-10-27T17:44:11.2286896+00:00","lastSuccessAt":"2026-10-27T17:44:09.7084381+00:00","error":null,"lastVerifiedAt":"2026-10-27T17:44:11.2286896+00:00","snapshotPublishedAt":"2026-10-27T17:26:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-43321610382942b8ad8c85917eab1546","complete":false,"records":4735,"lastAttemptAt":"2026-10-27T17:47:37.4970153+00:00","lastSuccessAt":"2026-10-24T23:18:49.862+00:00","error":"InvalidDataException","lastVerifiedAt":"2026-10-24T23:18:49.862+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":0,"expectedIdentifiers":13497},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-27T17:47:33.6124923+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-27T17:47:33.6124923+00:00","lastSuccessAt":"2026-10-27T17:47:33.818584+00:00","error":null,"lastVerifiedAt":"2026-10-27T17:47:33.8185844+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b877d586fc144938aa44089e665cd1e0","complete":true,"records":13434,"lastAttemptAt":"2026-10-27T17:47:34.5117551+00:00","lastSuccessAt":"2026-10-27T16:46:14.705+00:00","error":null,"lastVerifiedAt":"2026-10-27T16:46:14.705+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13497,"expectedIdentifiers":13497},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-439cd5d099ccb2499c5497741843190e65b167cf304db2a157938d3d4847a993","complete":true,"records":9783,"lastAttemptAt":"2026-10-27T17:47:33.2623747+00:00","lastSuccessAt":"2026-10-27T16:45:44.7050411+00:00","error":null,"lastVerifiedAt":"2026-10-27T17:47:33.2623747+00:00","snapshotPublishedAt":"2026-10-27T16:03:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-bad5d31e7f6a5e3d338e11d8789069b63620a403f927730769688b42f768e4f6","complete":true,"records":1965,"lastAttemptAt":"2026-10-27T17:44:11.7010721+00:00","lastSuccessAt":"2026-10-26T16:35:43.1460623+00:00","error":null,"lastVerifiedAt":"2026-10-27T17:44:11.7010721+00:00","snapshotPublishedAt":"2026-10-26T16:18:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3a5b306d60fc44677a03a8afc99d87e6c5402770ef68d560f94a8c3ad3802b75","complete":true,"records":3001,"lastAttemptAt":"2026-10-27T17:47:33.5548586+00:00","lastSuccessAt":"2026-10-27T16:45:49.0050993+00:00","error":null,"lastVerifiedAt":"2026-10-27T17:47:33.5548586+00:00","snapshotPublishedAt":"2026-10-27T16:33:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-9879a6cc2cfcef686e74484f528ab0a58581fed33334cc3f63a0864323c73deb","complete":true,"records":230833,"lastAttemptAt":"2026-10-27T17:47:33.1113165+00:00","lastSuccessAt":"2026-10-27T17:47:31.417422+00:00","error":null,"lastVerifiedAt":"2026-10-27T17:47:33.1113165+00:00","snapshotPublishedAt":"2026-10-27T17:33:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null}]}