ash_postgres is vulnerable to Improper Authorization
72
High Risk
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.
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.
ash_postgres is vulnerable to Improper Authorization in versions 0.25.0 - 2.12.0.
Upgrade the ash_postgres library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.