{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_postgres:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshPostgres.DataLayer'"],"packageName":"ash_postgres","packageURL":"pkg:hex/ash_postgres","product":"ash_postgres","programFiles":["lib/data_layer.ex"],"programRoutines":[{"name":"'Elixir.AshPostgres.DataLayer':lateral_join_query/3"},{"name":"'Elixir.AshPostgres.DataLayer':through_step_queries/4"},{"name":"'Elixir.AshPostgres.DataLayer':run_query_with_lateral_join/4"}],"repo":"https://github.com/ash-project/ash_postgres","vendor":"ash-project","versions":[{"lessThan":"2.15.2","status":"affected","version":"0.38.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_postgres:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshPostgres.DataLayer'"],"packageName":"ash-project/ash_postgres","packageURL":"pkg:github/ash-project/ash_postgres","product":"ash_postgres","programFiles":["lib/data_layer.ex"],"programRoutines":[{"name":"'Elixir.AshPostgres.DataLayer':lateral_join_query/3"},{"name":"'Elixir.AshPostgres.DataLayer':through_step_queries/4"},{"name":"'Elixir.AshPostgres.DataLayer':run_query_with_lateral_join/4"}],"repo":"https://github.com/ash-project/ash_postgres","vendor":"ash-project","versions":[{"lessThan":"8c25c945c39a45299193fe70b09fc2fa2aacac7b","status":"affected","version":"7115bec58678f13b1ac2fb4822a0ba1aea9dbec5","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Reachable when the join resource of a <code>many_to_many</code> relationship, or a resource along a <code>through</code> 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).</p>"},{"base64":false,"type":"text/markdown","value":"Reachable 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)."}],"value":"Reachable 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)."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_postgres:*:*:*:*:*:*:*:*","versionEndExcluding":"2.15.2","versionStartIncluding":"0.38.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Will Townsend"},{"lang":"en","type":"reporter","value":"Will Townsend"},{"lang":"en","type":"remediation developer","value":"Zach Daniel / Ash Project"}],"dateAssigned":"2026-10-25T17:27:14.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>\n<p>When a <code>many_to_many</code> relationship, or a <code>through</code> relationship, is loaded with a lateral join (for example with a per-record limit or sort), <code>AshPostgres.DataLayer</code> builds the query for the join resource, and for each resource along a <code>through</code> path, in <code>lateral_join_query/3</code> and <code>through_step_queries/4</code> without running that resource's read action, which is where attribute multitenancy is applied. When those resources use <code>strategy :attribute</code> multitenancy, rows belonging to other tenants were joined, so the load returned destination records that the caller's tenant is not related to.</p>\n<p>This issue affects ash_postgres: from 0.38.0 before 2.15.2.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}],"impacts":[{"capecId":"CAPEC-1","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>A user of one tenant loading a many_to_many or through relationship receives destination records linked only through another tenant's join rows.</p>"},{"base64":false,"type":"text/markdown","value":"A user of one tenant loading a many_to_many or through relationship receives destination records linked only through another tenant's join rows."}],"value":"A user of one tenant loading a many_to_many or through relationship receives destination records linked only through another tenant's join rows."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","description":"CWE-863 Incorrect Authorization","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-25T19:49:50.510Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"AshPostgres ignores attribute multitenancy on the join resource when loading `many_to_many` and `through` relationships, returning records related through other tenants' rows","tags":["vendor-advisory","related"],"url":"https://github.com/ash-project/ash/security/advisories/GHSA-gr2r-f49c-9gm2"},{"name":"EEF CNA record for CVE-2026-115627","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-115627.html"},{"name":"OSV record EEF-CVE-2026-115627","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-115627"},{"name":"Introducing commit 7115bec in ash-project/ash_postgres","tags":["related"],"url":"https://github.com/ash-project/ash_postgres/commit/7115bec58678f13b1ac2fb4822a0ba1aea9dbec5"},{"name":"Fix commit 8c25c94 in ash-project/ash_postgres","tags":["patch"],"url":"https://github.com/ash-project/ash_postgres/commit/8c25c945c39a45299193fe70b09fc2fa2aacac7b"}],"source":{"discovery":"EXTERNAL"},"title":"AshPostgres ignores attribute multitenancy on the join resource when loading many_to_many and through relationships, returning records related through other tenants' rows"}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-115627","datePublished":"2026-10-25T19:49:50.510Z","dateReserved":"2026-10-23T13:00:02.154Z","dateUpdated":"2026-10-25T19:49:50.510Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}