{"id":"CVE-2026-115635","revision":"363a7de60074434b9275baf7c72e93e2","records":[{"revision":"363a7de60074434b9275baf7c72e93e2","observedAt":"2026-10-25T21:02:02.563+00:00","statement":{"source":"cve-program","id":"CVE-2026-115635","aliases":[],"title":"AshPostgres returns another tenant's record for a skipped upsert when return_skipped_upsert? is set","description":"Incorrect Authorization vulnerability in ash-project ash_postgres allows a user to read another tenant's record through a skipped upsert.\n\nWhen Ash.bulk_create/4 or a single create runs as an upsert with return_skipped_upsert?: true and the upsert is skipped (for example because its upsert_condition does not hold), AshPostgres.DataLayer reads the existing row back by the upsert identity in do_bulk_create/3 and upsert/4. That lookup did not apply the resource's attribute multitenancy, so on a resource using strategy :attribute it could match and return the row of another tenant with the same identity values, exposing its fields to the caller.\n\nThis issue affects ash_postgres: from 2.6.22 before 2.15.2.","state":0,"publishedAt":"2026-10-25T19:48:43.829+00:00","modifiedAt":"2026-10-25T19:48:43.829+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':do_bulk_create/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':upsert/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':bulk_create/3\"\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\": \"2.6.22\",\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':do_bulk_create/3\"\n                        },\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':upsert/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.AshPostgres.DataLayer':bulk_create/3\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/ash-project/ash_postgres\",\n                    \"vendor\": \"ash-project\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"8aa81220c401cae412d21078d11b3519ea25d3a9\",\n                            \"status\": \"affected\",\n                            \"version\": \"af0903f1380468bbe1b61fe65acb33772b5e24a5\",\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-36hg-wwp2-fg8w","https://cna.erlef.org/cves/CVE-2026-115635.html","https://osv.dev/vulnerability/EEF-CVE-2026-115635","https://github.com/ash-project/ash_postgres/commit/af0903f1380468bbe1b61fe65acb33772b5e24a5","https://github.com/ash-project/ash_postgres/commit/8aa81220c401cae412d21078d11b3519ea25d3a9"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-115635","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-115635","identifiers":["CVE-2026-115635"]},"retained":false,"historicalAffected":[]}],"coverage":[]}