{"id":"CVE-2026-78699","aliases":["CVE-2026-78699","EEF-CVE-2026-78699","GHSA-6fqq-j9c4-5766"],"related":[],"kind":"vulnerability","state":"published","title":"rename_tenant returns :ok on a failed rename, enabling cross-tenant access in AshPostgres","summary":"Unchecked Return Value vulnerability in ash-project ash_postgres allows a user who can drive a tenant rename to a name that collides with an existing tenant's schema to have their tenant record repointed at that other tenant's live schema, gaining access to its data.\n\nAshPostgres.MultiTenancy.rename_tenant/3 issues the ALTER SCHEMA ... RENAME TO ... with the non-raising Ecto.Adapters.SQL.query/2, discards its {:ok, _} | {:error, _} result, and unconditionally returns :ok. PostgreSQL rejects the rename when the target schema already exists (and on insufficient privilege or lock timeout), but that failure never reaches the caller. The calling manage_tenant update action therefore sees success and commits the tenant row with the new name, which is the schema of a different existing tenant, so subsequent reads and writes for that tenant run against the other tenant's data.\n\nThis issue affects ash_postgres: from 0.25.0 before 2.13.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Unchecked Return Value vulnerability in ash-project ash_postgres allows a user who can drive a tenant rename to a name that collides with an existing tenant's schema to have their tenant record repointed at that other tenant's live schema, gaining access to its data.\n\nAshPostgres.MultiTenancy.rename_tenant/3 issues the ALTER SCHEMA ... RENAME TO ... with the non-raising Ecto.Adapters.SQL.query/2, discards its {:ok, _} | {:error, _} result, and unconditionally returns :ok. PostgreSQL rejects the rename when the target schema already exists (and on insufficient privilege or lock timeout), but that failure never reaches the caller. The calling manage_tenant update action therefore sees success and commits the tenant row with the new name, which is the schema of a different existing tenant, so subsequent reads and writes for that tenant run against the other tenant's data.\n\nThis issue affects ash_postgres: from 0.25.0 before 2.13.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nUnchecked Return Value vulnerability in ash-project ash_postgres allows a user who can drive a tenant rename to a name that collides with an existing tenant's schema to have their tenant record repointed at that other tenant's live schema, gaining access to its data.\n\n`AshPostgres.MultiTenancy.rename_tenant/3` issues the `ALTER SCHEMA ... RENAME TO ...` with the non-raising `Ecto.Adapters.SQL.query/2`, discards its `{:ok, _} | {:error, _}` result, and unconditionally returns `:ok`. PostgreSQL rejects the rename when the target schema already exists (and on insufficient privilege or lock timeout), but that failure never reaches the caller. The calling `manage_tenant` update action therefore sees success and commits the tenant row with the new name, which is the schema of a different existing tenant, so subsequent reads and writes for that tenant run against the other tenant's data.\n\nThis issue affects ash_postgres: from 0.25.0 before 2.13.0.\n\n## Configurations\n\nAn application must run ash_postgres schema-based multitenancy with a user-driven tenant rename (for example a `manage_tenant` update on an editable org slug or subdomain), letting a user choose a new tenant name that collides with an existing tenant's schema.","format":"markdown","source":"eef"}],"published":"2026-08-30T15:13:23.875Z","modified":"2026-11-26T17:23:12.691Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.2,"rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-252"],"affected":[{"ranges":[{"type":"semver","introduced":"0.25.0","fixed":"2.13.0","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":"03510dae24020e302558ef947be7ea874a9ce756","fixed":"8544ab15fe45784553c2d2da8ee1a388eee0174b","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.25.0","status":"affected","fixed":"2.13.0"}],"ecosystem":"Hex","package":"ash_postgres","purl":"pkg:hex/ash_postgres","source":"eef"},{"ranges":[{"type":"git","introduced":"03510dae24020e302558ef947be7ea874a9ce756","status":"affected","fixed":"8544ab15fe45784553c2d2da8ee1a388eee0174b"}],"repo":"https://github.com/ash-project/ash_postgres","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_postgres/security/advisories/GHSA-6fqq-j9c4-5766","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-78699.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-78699","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_postgres/commit/03510dae24020e302558ef947be7ea874a9ce756","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_postgres/commit/8544ab15fe45784553c2d2da8ee1a388eee0174b","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_postgres","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":"total","date":"2026-09-01T12:30:06.722Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-78699","url":"https://www.cve.org/CVERecord?id=CVE-2026-78699","licence":"CVE Terms of Use","modified":"2026-11-19T08:40:39.933Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-78699","url":"https://osv.dev/vulnerability/EEF-CVE-2026-78699","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:12.691Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-78699","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78699","licence":"Public domain","modified":"2026-11-19T09:18:01.270Z"}],"updatedAt":"2026-11-26T17:37:11.414Z","epss":{"score":0.00208,"percentile":0.11494,"date":"2026-12-01T12:00:22.000Z"}}