{"id":"CVE-2026-115627","revision":"b29e4324a4004e1083451f4f869da253","records":[{"revision":"b29e4324a4004e1083451f4f869da253","observedAt":"2026-10-25T21:02:02.563+00:00","statement":{"source":"cve-program","id":"CVE-2026-115627","aliases":[],"title":"AshPostgres ignores attribute multitenancy on the join resource when loading many_to_many and through relationships, returning records related through other tenants' rows","description":"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.","state":0,"publishedAt":"2026-10-25T19:49:50.51+00:00","modifiedAt":"2026-10-25T19:49:50.51+00:00","affected":[{"ecosystem":"https://repo.hex.pm","name":"ash_postgres","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:ash-project:ash_postgres:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.AshPostgres.DataLayer'\"\n                    ],\n                    \"packageName\": \"ash_postgres\",\n                    \"packageURL\": \"pkg:hex/ash_postgres\",\n                    \"product\": \"ash_postgres\",\n                    \"programFiles\": [\n                        \"lib/data_layer.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':lateral_join_query/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':through_step_queries/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':run_query_with_lateral_join/4\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/ash-project/ash_postgres\",\n                    \"vendor\": \"ash-project\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"2.15.2\",\n                            \"status\": \"affected\",\n                            \"version\": \"0.38.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"ash-project/ash_postgres","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:ash-project:ash_postgres:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.AshPostgres.DataLayer'\"\n                    ],\n                    \"packageName\": \"ash-project/ash_postgres\",\n                    \"packageURL\": \"pkg:github/ash-project/ash_postgres\",\n                    \"product\": \"ash_postgres\",\n                    \"programFiles\": [\n                        \"lib/data_layer.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':lateral_join_query/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':through_step_queries/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':run_query_with_lateral_join/4\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/ash-project/ash_postgres\",\n                    \"vendor\": \"ash-project\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"8c25c945c39a45299193fe70b09fc2fa2aacac7b\",\n                            \"status\": \"affected\",\n                            \"version\": \"7115bec58678f13b1ac2fb4822a0ba1aea9dbec5\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"MEDIUM"}],"references":["https://github.com/ash-project/ash/security/advisories/GHSA-gr2r-f49c-9gm2","https://cna.erlef.org/cves/CVE-2026-115627.html","https://osv.dev/vulnerability/EEF-CVE-2026-115627","https://github.com/ash-project/ash_postgres/commit/7115bec58678f13b1ac2fb4822a0ba1aea9dbec5","https://github.com/ash-project/ash_postgres/commit/8c25c945c39a45299193fe70b09fc2fa2aacac7b"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-115627","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-115627","identifiers":["CVE-2026-115627"]},"retained":false,"historicalAffected":[]}],"coverage":[]}