Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: Official CVE List

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.

Products
ash
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-96581
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 10:25 UTC · Revision 1

Source evidence

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

core-cve · Original source

Published 26 Oct 2026, 07:20 UTC

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.

cve:CVE-2026-96581

ash

Fixed versions: Not specified

ash

Fixed versions: Not specified

Complete source record
{
  "id": "fbfa49d030ea90d5d63b4b3fb3675f1fdc1f884fe33d51d222c5e855e2541c33",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-96581",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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",
    "summary": "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.",
    "evidence": "cve:CVE-2026-96581",
    "products": [
      {
        "name": {
          "value": "ash",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      },
      {
        "name": {
          "value": "ash",
          "evidence": "/containers/cna/affected/1/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-96581",
      "aliases": [
        "CVE-2026-96581"
      ],
      "metrics": [
        {
          "format": "CVSS",
          "cvssV4_0": {
            "Safety": "NOT_DEFINED",
            "version": "4.0",
            "Recovery": "NOT_DEFINED",
            "baseScore": 7.6,
            "Automatable": "NOT_DEFINED",
            "attackVector": "NETWORK",
            "baseSeverity": "HIGH",
            "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",
            "providerUrgency": "NOT_DEFINED",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "privilegesRequired": "LOW",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "HIGH",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "HIGH",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "affected": [
        {
          "cpes": [
            "cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"
          ],
          "repo": "https://github.com/ash-project/ash",
          "vendor": "ash-project",
          "modules": [
            "'Elixir.Ash.Actions.Create'",
            "'Elixir.Ash.Actions.Create.Bulk'",
            "'Elixir.Ash.DataLayer.Ets'",
            "'Elixir.Ash.DataLayer.Mnesia'"
          ],
          "product": "ash",
          "versions": [
            {
              "status": "affected",
              "version": "1.22.0",
              "lessThan": "3.37.2",
              "versionType": "semver"
            }
          ],
          "packageURL": "pkg:hex/ash",
          "packageName": "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"
          ],
          "collectionURL": "https://repo.hex.pm",
          "defaultStatus": "unaffected",
          "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"
            }
          ]
        },
        {
          "cpes": [
            "cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*"
          ],
          "repo": "https://github.com/ash-project/ash",
          "vendor": "ash-project",
          "modules": [
            "'Elixir.Ash.Actions.Create'",
            "'Elixir.Ash.Actions.Create.Bulk'",
            "'Elixir.Ash.DataLayer.Ets'",
            "'Elixir.Ash.DataLayer.Mnesia'"
          ],
          "product": "ash",
          "versions": [
            {
              "status": "affected",
              "version": "2333d01ddf37e5909769a513059b27e3183331c5",
              "lessThan": "c9f0cdb31e7c084def05f3f5be69dd7bb7721754",
              "versionType": "git"
            }
          ],
          "packageURL": "pkg:github/ash-project/ash",
          "packageName": "ash-project/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"
          ],
          "collectionURL": "https://github.com",
          "defaultStatus": "unaffected",
          "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"
            }
          ]
        }
      ],
      "modified": "2026-10-26T14:35:19.745Z",
      "provider": "cve",
      "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"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2026-96581",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-26T14:25:41.244972Z"
                  }
                }
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-26T14:35:19.745Z"
            }
          }
        ],
        "cna": {
          "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "shortName": "EEF",
          "dateUpdated": "2026-10-26T07:20:07.186Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-96581",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 311580,
  "published_at": "2026-10-26T07:20:07.186+00:00"
}