Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEnumerate existing tenant schema names
-
DeliveryInitiate rename request targeting victim schema name
-
ExploitPostgreSQL rejects ALTER SCHEMA due to collision
-
Executionash_postgres discards error and returns :ok
-
PersistTenant row committed pointing at victim's schema
-
ImpactAttacker's queries execute against victim's live data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Return value checking
|
| Exploitation Conditions | Exploitation requires all of the following to be true simultaneously: (1) the application uses ash_postgres schema-based multi-tenancy via AshPostgres.MultiTenancy - applications using row-level or other non-schema tenancy strategies are unaffected; (2) the tenant rename operation (manage_tenant update action) is accessible to a user-controllable interface, not restricted exclusively to server-side administrative processes; (3) the attacker knows or can enumerate the PostgreSQL schema name of a target tenant; and (4) the target schema must already exist in PostgreSQL at the moment the rename is attempted - the AT:P precondition in the CVSS 4.0 vector explicitly captures this requirement. Exploitation is limited to Ash Framework applications with AshPostgres multi-tenancy enabled and versions 0.25.0-2.12.x; single-tenant or non-schema-based deployments are not affected. |
| Impact | The vendor-assigned CVSS 4.0 score of 7.2 with vector AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N reflects two mitigating constraints: low-privilege access is required to initiate a tenant rename, and AT:P captures a specific attack precondition - a target schema with the colliding name must already exist at the moment of the rename attempt. The VC:H/VI:H metrics reflect complete cross-tenant data access if exploitation succeeds, with no availability impact. No EPSS score was provided in the input data; CISA KEV listing is not confirmed; and no public proof-of-concept has been cited. Real-world risk is meaningful only in multi-tenant Ash/PostgreSQL deployments where tenant rename functionality is exposed to non-administrative users and an attacker can predict or enumerate existing tenant schema names. The niche Elixir/Ash Framework ecosystem limits breadth of exposure, but severity for affected deployments is high given the complete cross-tenant confidentiality and integrity impact. The AV:L assignment in the vendor vector implies the rename pathway is treated as an application-internal operation rather than a directly network-exposed endpoint; deployments that expose this via a web API may face a higher practical attack surface than the vector alone suggests. |
| Exploit ScenarioDerived | An attacker with access to a multi-tenant application's tenant rename interface - such as a SaaS admin panel - renames their own tenant to the known schema name of a target tenant. PostgreSQL silently rejects the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
Silent schema cross-contamination in ash_postgres multi-tenancy allows a low-privileged user who can trigger a tenant rename to gain unauthorized read and write access to a different tenant's PostgreSQL schema. Affected versions span 0.25.0 through 2.13.0 of the ash-project/ash_postgres Elixir library. When PostgreSQL rejects the ALTER SCHEMA rename due to a name collision, the library silently reports success, causing the tenant metadata row to be committed pointing at the victim's live schema - routing all subsequent reads and writes for the attacker's tenant against the victim's data. No public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Upgrade ash_postgres to version 2.13.0 or later, which replaces the silent Ecto.Adapters.SQL.query/2 call with the raising Ecto.Adapters.SQL.query!/2 at lib/multitenancy.ex:95, ensuring PostgreSQL rename failures propagate as exceptions and cause the surrounding Ecto transaction to roll back before the tenant record is committed. The upstream patch is available at commit 8544ab15fe45784553c2d2da8ee1a388eee0174b; see the vendor advisory at https://github.com/ash-project/ash_postgres/security/advisories/GHSA-6fqq-j9c4-5766 for full guidance. As a compensating control prior to patching, strictly gate or disable tenant rename functionality at the application layer - restrict it to a privileged administrative context inaccessible to tenant-level users - accepting the trade-off that self-service tenant renaming will be unavailable until the upgrade is applied.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ash_postgres (CPE: cpe:2.3:a:ash-project:ash_postgres) is an Elixir library extending the Ash Framework to provide PostgreSQL persistence, including schema-based multi-tenancy where each tenant owns a separate PostgreSQL schema namespace. The vulnerable function AshPostgres.MultiTenancy.rename_tenant/3 at lib/multitenancy.ex:95 executes ALTER SCHEMA ... RENAME TO ... via Ecto's Ecto.Adapters.SQL.query/2 - the non-raising variant that returns {:ok, _} or {:error, _} tuples. CWE-252 (Unchecked Return Value) is the root cause: the result tuple is discarded and the function unconditionally returns :ok regardless of outcome. PostgreSQL correctly rejects a rename targeting an already-existing schema name, but because the error is never surfaced, the surrounding manage_tenant update action treats the operation as successful and commits the tenant record with the conflicting schema name, silently aliasing one tenant's logical identity to another tenant's physical schema. The fix - confirmed in commit 8544ab15 - replaces query/2 with the raising query!/2, which propagates PostgreSQL errors as exceptions and causes the enclosing Ecto transaction to roll back.
Know when PostgreSQL gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Tenant rename is typically network-exposed in SaaS apps; AC:H captures the required precondition of a pre-existing target schema; PR:L for tenant-level access; no availability impact.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
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.
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.
This issue affects ash_postgres: from 0.25.0 before 2.13.0.
Technical POC Analysis
CWE-252 (unchecked return value).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-68265
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB