{"id":"CVE-2026-82745","aliases":["CVE-2026-82745","EEF-CVE-2026-82745","GHSA-92x7-q3h5-wf88"],"related":[],"kind":"vulnerability","state":"published","title":"ETS and Mnesia data layers overwrite an existing record on create instead of enforcing primary-key uniqueness","summary":"Improper Access Control vulnerability in ash-project ash lets a create action overwrite an existing record when the ETS or Mnesia data layer is used, because neither enforced primary-key uniqueness on insert.\n\nUnlike a SQL data layer, whose unique primary-key constraint rejects a duplicate, the ETS and Mnesia data layers implemented create as a keyed insert that replaces any existing entry with the same primary key (lib/ash/data_layer/ets/ets.ex, lib/ash/data_layer/mnesia/mnesia.ex). An actor who can set the primary key on a create (for example a user-supplied string or integer key) can submit a create whose key matches an existing record and silently overwrite it, destroying and replacing another entity's data without going through the update action or its policies. The fix rejects a create whose primary key already exists with an already-taken error, and only allows duplicates for keyless resources.\n\nThis issue affects ash: from 0.4.0 before 3.32.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Access Control vulnerability in ash-project ash lets a create action overwrite an existing record when the ETS or Mnesia data layer is used, because neither enforced primary-key uniqueness on insert.\n\nUnlike a SQL data layer, whose unique primary-key constraint rejects a duplicate, the ETS and Mnesia data layers implemented create as a keyed insert that replaces any existing entry with the same primary key (lib/ash/data_layer/ets/ets.ex, lib/ash/data_layer/mnesia/mnesia.ex). An actor who can set the primary key on a create (for example a user-supplied string or integer key) can submit a create whose key matches an existing record and silently overwrite it, destroying and replacing another entity's data without going through the update action or its policies. The fix rejects a create whose primary key already exists with an already-taken error, and only allows duplicates for keyless resources.\n\nThis issue affects ash: from 0.4.0 before 3.32.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Access Control vulnerability in ash-project ash lets a create action overwrite an existing record when the ETS or Mnesia data layer is used, because neither enforced primary-key uniqueness on insert.\n\nUnlike a SQL data layer, whose unique primary-key constraint rejects a duplicate, the ETS and Mnesia data layers implemented `create` as a keyed insert that replaces any existing entry with the same primary key (`lib/ash/data_layer/ets/ets.ex`, `lib/ash/data_layer/mnesia/mnesia.ex`). An actor who can set the primary key on a create (for example a user-supplied string or integer key) can submit a create whose key matches an existing record and silently overwrite it, destroying and replacing another entity's data without going through the update action or its policies. The fix rejects a create whose primary key already exists with an already-taken error, and only allows duplicates for keyless resources.\n\nThis issue affects ash: from 0.4.0 before 3.32.2.","format":"markdown","source":"eef"}],"published":"2026-09-01T03:42:28.309Z","modified":"2026-11-26T17:23:12.706Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.9,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"type":"semver","introduced":"0.4.0","fixed":"3.32.2","status":"affected"}],"vendor":"ash-project","product":"ash","package":"ash","cpe":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash","source":"cvelist"},{"ranges":[{"type":"git","introduced":"6dc699d8a683d542812b34a8c104cc90164add3a","fixed":"912e243196017c2a812c25905c2b1cc3bbb843fc","status":"affected"}],"vendor":"ash-project","product":"ash","package":"ash-project/ash","cpe":"cpe:2.3:a:ash-project:ash:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.4.0","status":"affected","fixed":"3.32.2"}],"ecosystem":"Hex","package":"ash","purl":"pkg:hex/ash","source":"eef"},{"ranges":[{"type":"git","introduced":"6dc699d8a683d542812b34a8c104cc90164add3a","status":"affected","fixed":"912e243196017c2a812c25905c2b1cc3bbb843fc"}],"repo":"https://github.com/ash-project/ash","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-92x7-q3h5-wf88","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82745.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82745","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash/commit/6dc699d8a683d542812b34a8c104cc90164add3a","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash/commit/912e243196017c2a812c25905c2b1cc3bbb843fc","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-01T15:16:19.826Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-82745","url":"https://www.cve.org/CVERecord?id=CVE-2026-82745","licence":"CVE Terms of Use","modified":"2026-11-19T08:36:15.671Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-82745","url":"https://osv.dev/vulnerability/EEF-CVE-2026-82745","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:12.706Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-82745","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82745","licence":"Public domain","modified":"2026-11-19T09:18:10.227Z"}],"updatedAt":"2026-11-26T17:37:15.595Z","epss":{"score":0.00181,"percentile":0.08015,"date":"2026-12-01T12:00:22.000Z"}}