{"id":"CVE-2026-115627","aliases":["CVE-2026-115627","EEF-CVE-2026-115627","GHSA-gr2r-f49c-9gm2"],"related":[],"kind":"vulnerability","state":"published","title":"AshPostgres ignores attribute multitenancy on the join resource when loading many_to_many and through relationships, returning records related through other tenants' rows","summary":"Incorrect Authorization vulnerability in ash-project ash_postgres allows a user to load destination records linked to a source record only through another tenant's join rows.\n\nWhen a many_to_many relationship, or a through relationship, is loaded with a lateral join (for example with a per-record limit or sort), AshPostgres.DataLayer builds the query for the join resource, and for each resource along a through path, in lateral_join_query/3 and through_step_queries/4 without running that resource's read action, which is where attribute multitenancy is applied. When those resources use strategy :attribute multitenancy, rows belonging to other tenants were joined, so the load returned destination records that the caller's tenant is not related to.\n\nThis issue affects ash_postgres: from 0.38.0 before 2.15.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Incorrect Authorization vulnerability in ash-project ash_postgres allows a user to load destination records linked to a source record only through another tenant's join rows.\n\nWhen a many_to_many relationship, or a through relationship, is loaded with a lateral join (for example with a per-record limit or sort), AshPostgres.DataLayer builds the query for the join resource, and for each resource along a through path, in lateral_join_query/3 and through_step_queries/4 without running that resource's read action, which is where attribute multitenancy is applied. When those resources use strategy :attribute multitenancy, rows belonging to other tenants were joined, so the load returned destination records that the caller's tenant is not related to.\n\nThis issue affects ash_postgres: from 0.38.0 before 2.15.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nIncorrect Authorization vulnerability in ash-project ash_postgres allows a user to load destination records linked to a source record only through another tenant's join rows.\n\nWhen a `many_to_many` relationship, or a `through` relationship, is loaded with a lateral join (for example with a per-record limit or sort), `AshPostgres.DataLayer` builds the query for the join resource, and for each resource along a `through` path, in `lateral_join_query/3` and `through_step_queries/4` without running that resource's read action, which is where attribute multitenancy is applied. When those resources use `strategy :attribute` multitenancy, rows belonging to other tenants were joined, so the load returned destination records that the caller's tenant is not related to.\n\nThis issue affects ash_postgres: from 0.38.0 before 2.15.2.\n\n## Impact\n\nA user of one tenant loading a many_to_many or through relationship receives destination records linked only through another tenant's join rows.\n\n## Configurations\n\nReachable when the join resource of a `many_to_many` relationship, or a resource along a `through` path, uses attribute multitenancy and holds rows from several tenants, and the relationship is loaded with a lateral join (for example with a limit, offset or sort on the relationship).","format":"markdown","source":"eef"}],"published":"2026-10-25T19:49:50.510Z","modified":"2026-11-25T06:30:16.884Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"0.38.0","fixed":"2.15.2","status":"affected"}],"vendor":"ash-project","product":"ash_postgres","package":"ash_postgres","cpe":"cpe:2.3:a:ash-project:ash_postgres:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_postgres","source":"cvelist"},{"ranges":[{"type":"git","introduced":"7115bec58678f13b1ac2fb4822a0ba1aea9dbec5","fixed":"8c25c945c39a45299193fe70b09fc2fa2aacac7b","status":"affected"}],"vendor":"ash-project","product":"ash_postgres","package":"ash-project/ash_postgres","cpe":"cpe:2.3:a:ash-project:ash_postgres:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_postgres","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.38.0","status":"affected","fixed":"2.15.2"}],"ecosystem":"Hex","package":"ash_postgres","purl":"pkg:hex/ash_postgres","source":"eef"},{"ranges":[{"type":"git","introduced":"7115bec58678f13b1ac2fb4822a0ba1aea9dbec5","status":"affected","fixed":"8c25c945c39a45299193fe70b09fc2fa2aacac7b"}],"repo":"https://github.com/ash-project/ash_postgres","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash/security/advisories/GHSA-gr2r-f49c-9gm2","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-115627.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-115627","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_postgres/commit/7115bec58678f13b1ac2fb4822a0ba1aea9dbec5","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_postgres/commit/8c25c945c39a45299193fe70b09fc2fa2aacac7b","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_postgres","tags":["package"],"sources":["eef"]}],"credits":["Will Townsend","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-26T14:27:42.624Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-115627","url":"https://www.cve.org/CVERecord?id=CVE-2026-115627","licence":"CVE Terms of Use","modified":"2026-11-19T08:10:39.137Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-115627","url":"https://osv.dev/vulnerability/EEF-CVE-2026-115627","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:16.884Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-115627","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115627","licence":"Public domain","modified":"2026-10-26T15:16:39.097Z"}],"updatedAt":"2026-11-25T22:59:47.076Z","epss":{"score":0.00332,"percentile":0.28465,"date":"2026-12-01T12:00:22.000Z"}}