Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as table owner
-
DeliveryExecute ALTER TABLE ALTER TYPE on target table
-
ExploitOwnership of dependent statistics objects silently reassigned
-
ExecutionIssue DROP STATISTICS on formerly unauthorized objects
-
PersistQuery planner loses multi-column statistics
-
ImpactDegrade query plan quality for affected queries
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Incorrect ownership assignment
|
| Exploitation Conditions | Exploitation requires the attacker to hold ownership of a PostgreSQL table (PR:H) that has dependent extended statistics objects (created via CREATE STATISTICS) owned by a different database role. The vulnerable code path is triggered specifically by ALTER TABLE ALTER TYPE - changing a column's data type. Without a divergent ownership relationship between the table and its statistics objects, there is no additional unauthorized capability gained beyond what the table owner already controls. Exploitation is further limited by the fact that DROP TABLE can already cascade-delete statistics objects, so this bug only provides a marginal escalation in environments with deliberate separation of table and statistics ownership. |
| Impact | The CVSS 3.1 base score of 3.8 (Low) is well-calibrated for this vulnerability. The vector AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L reflects that exploitation requires existing high-privilege database access (table ownership), no confidentiality is exposed, and the integrity and availability impacts are limited to statistics objects rather than user data. EPSS data is not supplied, but given the low severity, niche exploitation preconditions, and absence of any KEV or POC listing, real-world exploitation probability is low. The described self-limiting factor - that DROP TABLE already removes statistics regardless - further reduces meaningful attacker leverage. This is primarily a privilege-logic correctness issue rather than a data-breach risk. Security teams should prioritize this in scheduled patching cycles rather than emergency response. |
| Exploit ScenarioDerived | A database user with ownership of a target table connects over the network and executes ALTER TABLE ALTER TYPE on a column, triggering the buggy ownership-reassignment code path. The attacker's user ID is now recorded as owner of any dependent extended statistics objects, even those originally created by a different role. The attacker can then issue DROP STATISTICS against those objects, forcing the query planner to lose multi-column correlation data and potentially degrade query performance. No public exploit code exists for this vulnerability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
Incorrect ownership reassignment in PostgreSQL's ALTER TABLE ALTER TYPE command allows a table owner to seize control of dependent statistics objects they did not create. Affected versions span all major supported branches prior to 18.5, 17.11, 16.15, 15.19, and 14.24. An authenticated table owner (high-privilege context per CVSS PR:H) can subsequently execute DROP STATISTICS or ALTER STATISTICS against statistics objects owned by another user, while simultaneously locking the legitimate statistics owner out of those same commands. No public exploit code exists and this CVE is not listed in CISA KEV.
RemediationAI
Upgrade to the patched releases: PostgreSQL 18.5, 17.11, 16.15, 15.19, or 14.24, all of which correct the ownership assignment logic in ALTER TABLE ALTER TYPE. The PostgreSQL project advisory at https://www.postgresql.org/support/security/CVE-2026-6469/ provides download links and release notes. If immediate patching is not feasible, a targeted workaround is to audit and consolidate statistics object ownership so that extended statistics objects are always owned by the same role as the underlying table - this eliminates the divergent-ownership scenario the bug can exploit. Restricting ALTER TABLE ALTER TYPE execution to superusers via REVOKE is a more restrictive compensating control but carries significant operational trade-offs for schema management workflows.
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
PostgreSQL implements ownership tracking for database objects including extended statistics objects (created via CREATE STATISTICS), which the query planner uses for multi-column correlation estimates. CWE-708 (Incorrect Ownership Assignment) describes the root cause: the ALTER TABLE ALTER TYPE code path, which processes column type changes, iterates over dependent objects to update them but incorrectly sets the pg_statistic_ext owner to the current executing user rather than preserving the original owner. Affected CPE targets all PostgreSQL branches 14.x through 18.x prior to their respective security releases. Because DROP TABLE itself can still cascade to remove statistics objects regardless of this flaw, the practical impact window is narrowed to scenarios where the statistics object owner and table owner differ - a setup requiring deliberate privilege separation.
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
AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L
Table ownership (PR:H) required to trigger ALTER TABLE ALTER TYPE; impact limited to statistics objects - no confidentiality loss, limited integrity and availability.
Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).
CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Lifecycle Timeline
2DescriptionCVE.org
Incorrect ownership assignment in PostgreSQL ALTER TABLE ALTER TYPE command reassigns ownership of dependent statistics objects to the current user. This wrongly allows the table owner to run DROP STATISTICS and ALTER STATISTICS via this improper ownership. It wrongly denies those commands to the prior statistics object owner. DROP TABLE remains able to remove statistics objects, so this exploit achieves nothing in many ownership arrangements. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
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-57855
GHSA-5qv4-w274-5rpv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB