Skip to main content

ash_postgres EUVDEUVD-2026-68265

| CVE-2026-78699 HIGH
Unchecked Return Value (CWE-252)
2026-08-30 EEF
7.2
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Enumerate existing tenant schema names
  2. Delivery
    Initiate rename request targeting victim schema name
  3. Exploit
    PostgreSQL rejects ALTER SCHEMA due to collision
  4. Execution
    ash_postgres discards error and returns :ok
  5. Persist
    Tenant row committed pointing at victim's schema
  6. Impact
    Attacker'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 ALTER SCHEMA statement due to the collision, but ash_postgres returns :ok, causing the attacker's tenant row to be committed with the victim's schema name. All subsequent queries for the attacker's tenant are then routed to the victim's PostgreSQL schema, exposing the victim's full dataset for reads and writes.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAI

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

ash_postgres 03510dae24020e302558ef947be7ea874a9ce756 <8544ab15fe45784553c2d2da8ee1a388eee0174b
ash_postgres 0.25.0 <2.13.0

Affected Packages

euvd ash_postgres fix: 2.13.0

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

Vendor (EEF) PRIMARY 7.2 HIGH
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
vuln.today AI 6.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
niche Elixir/Ash Framework library, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

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

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

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

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy