{
  "id": "CVE-2026-96581",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-96581",
  "published_at": "2026-10-26T07:20:07.186Z",
  "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",
  "vendor": "ash-project",
  "product": "ash",
  "cvss": {
    "score": 7.6,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-639",
  "cvss_by_source": {
    "cna": 7.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "ash-project",
        "product": "ash",
        "ranges": [
          "\u003e= 1.22.0, \u003c 3.37.2"
        ],
        "fixed_in": [
          "3.37.2"
        ]
      },
      {
        "vendor": "ash-project",
        "product": "ash",
        "ranges": [
          "\u003e= 2333d01ddf37e5909769a513059b27e3183331c5, \u003c c9f0cdb31e7c084def05f3f5be69dd7bb7721754"
        ],
        "fixed_in": [
          "c9f0cdb31e7c084def05f3f5be69dd7bb7721754"
        ]
      }
    ],
    "upgrade": [
      "Upgrade ash to 3.37.2 or later.",
      "Upgrade ash to c9f0cdb31e7c084def05f3f5be69dd7bb7721754 or later."
    ],
    "workarounds": [
      "Add upsert_condition expr(\u003ctenant attribute\u003e == ^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."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/ash-project/ash/security/advisories/GHSA-vw7c-67pf-gh96"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ash-project/ash/commit/2333d01ddf37e5909769a513059b27e3183331c5"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/ash-project/ash/commit/c9f0cdb31e7c084def05f3f5be69dd7bb7721754"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
