Intel

AIKIDO-2026-569636

ash_postgres is vulnerable to Improper Authorization

Improper AuthorizationCVE-2026-78699 Published Yesterday

72

High Risk

This Affects:

ELIXIRash_postgres
0.25.0 - 2.12.0
Fixed in 2.13.0
Are you affected? Scan for Free

TL;DR

AshPostgres provides schema-based multitenancy where each tenant's data lives in its own PostgreSQL schema, and rename_tenant renames that schema. The function runs an ALTER SCHEMA ... RENAME TO ... statement with a non-raising query call, discards the result, and always returns :ok, so a rename that PostgreSQL rejects because the target schema already exists is still treated as successful. The manage_tenant update then commits the tenant record pointing at another existing tenant's schema, and subsequent reads and writes for that tenant run against the other tenant's data. The fix checks the query result and raises or rolls back the transaction when the rename fails.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use schema-based multitenancy and expose a tenant rename operation whose target name can be influenced by untrusted or lower-privileged tenants.

Background info

ash_postgres is vulnerable to Improper Authorization in versions 0.25.0 - 2.12.0.

How to fix this

Upgrade the ash_postgres library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform