Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as object-creator role
-
DeliveryIssue ALTER ... SET DATA TYPE DDL
-
ExploitTrigger type confusion on stale values
-
ExecutionExecute arbitrary code as database OS user
-
ImpactFull host-level compromise
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Type safety enforcement
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated PostgreSQL role with privileges to create or alter objects (the 'object creator' noted in the description, consistent with PR:L). The concrete trigger is a DDL operation that mishandles typed values - primarily ALTER ... SET DATA TYPE, and also sequences like 'ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN' - exploiting inadequate tracking of non-self-identifying typed values that leave stale entries in the data dictionary, PL/pgSQL variables, and other subsystems. Key LIMITING factor: the attacker must already possess legitimate object-creation rights, so deployments that grant CREATE only to trusted administrators are substantially less exposed than shared, multi-tenant, or DBaaS environments where untrusted users hold such privileges. No user interaction and no elevated OS access are needed beyond the database role. The advisory indicates upgrading to the fixed versions is the remedy. |
| Impact | This is a genuine high-priority issue for any multi-user PostgreSQL deployment, but its risk is gated by a real precondition. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) and the description agree: exploitation is network-reachable and low-complexity, but requires an authenticated database role that can create objects (PR:L) - it is NOT anonymous remote code execution. The impact is severe once that bar is met: arbitrary code execution as the OS user running the database, yielding full C:H/I:H/A:H and effectively total host compromise within the database's privilege context. No EPSS score, KEV listing, or public PoC was supplied, so exploitation signals beyond the vendor advisory are absent; the vuln.today 'this_week' decision label and the vendor (PostgreSQL) self-report drive urgency rather than observed in-the-wild activity. The practical risk calculus: environments where untrusted or semi-trusted users hold CREATE privileges (shared/multi-tenant databases, DBaaS, analytics sandboxes) should treat this as urgent because PR:L is easily satisfied there; single-operator databases where only trusted admins create objects face materially lower real-world risk since an attacker would already need legitimate object-creation rights. No signals conflict here, but note that EPSS/KEV/PoC data is simply missing, not confirmed negative. |
| Exploit ScenarioDerived | An authenticated PostgreSQL user holding privileges to create objects issues an ALTER ... SET DATA TYPE (or a DDL sequence such as ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN) that leaves stale, non-self-identifying typed values in the data dictionary or PL/pgSQL state, triggering type confusion. By controlling how those mistyped values are later interpreted, the attacker causes the backend to execute arbitrary code as the OS account running the database. No public exploit code was identified at time of analysis; the attack is low-complexity but requires an existing object-creator role. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Type confusion in PostgreSQL allows an authenticated role that can create or alter database objects to execute arbitrary code as the operating system user running the database server, primarily through ALTER ... SET DATA TYPE, with additional DDL routes such as 'ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN'. All branches before PostgreSQL 18.7, 17.12, 16.16, 15.20 and 14.25 are affected, and the flaw is rated CVSS 8.8 (AV:N/AC:L/PR:L/UI:N, high confidentiality, integrity and availability impact) because the attacker stays inside the database privilege model until the corruption converts into code execution at the OS level. Exploitation requires a legitimate account holding object-creation rights, so shared, multi-tenant and DBaaS deployments that grant CREATE to untrusted users are the most exposed; no public exploit code has been identified at time of analysis, and upgrading to the fixed minor releases is the vendor's stated remedy.
RemediationAI
Upgrade to the fixed minor release for each branch: PostgreSQL 18.7, 17.12, 16.16, 15.20 or 14.25 as published in the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-6460/, which states that upgrading is the remedy; because this is a minor-version update, plan it in the current patch cycle for exposed clusters rather than deferring it. Where an immediate upgrade is not possible, the exposure gate itself is the practical control: the flaw is only reachable by a role that can create or alter objects, so revoke CREATE on schemas and databases (and TRUSTED/PL/pgSQL extension rights) from untrusted or shared accounts so they cannot issue the DDL that triggers the type confusion, and confine object ownership to administrators. The trade-off is real - applications, migration tooling and self-service tenants that rely on user-owned schemas or on-the-fly DDL will break or need to have DDL performed by an administrative role - and for DBaaS or multi-tenant platforms the equivalent step is to move untrusted tenants onto dedicated roles that lack DDL rights until their instances reach a fixed version. Restricting privileges reduces reachability but does not repair the underlying type-tracking defect, so the upgrade remains the complete fix.
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
The root cause is CWE-843 (type confusion) arising from PostgreSQL's internal handling of typed values: the system tracked the type of values inadequately, and the values themselves were not self-identifying. Because of that, stale values could survive into data dictionary entries, PL/pgSQL variables and other subsystems when DDL changed or rolled back the shape of an object, leaving the server holding a datum under the wrong type assumption. The concrete triggers given by the vendor are DDL operations that rewrite or abandon object definitions - chiefly ALTER ... SET DATA TYPE, and the sequence 'ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN' - which is consistent with an authenticated object creator (CVSS PR:L) reaching memory-corruption paths without user interaction. The advisory does not describe the specific memory-corruption mechanics or the particular subsystem in which the mis-typed value is finally consumed, so the exact step from type confusion to code execution is not detailed in the available sources. The affected CPE is a wildcard over the PostgreSQL application (cpe:2.3:a:n/a:postgresql:*:*:*:*:*:*:*:*), meaning the whole pre-fix version range across the 14, 15, 16, 17 and 18 branches is in scope rather than a single build or platform.
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:L/UI:N/S:U/C:H/I:H/A:H
Requires an authenticated object-creator role (PR:L) over a network connection with low-complexity DDL (AC:L); resulting OS-level code execution yields full C/I/A impact.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.org
Type confusion in PostgreSQL allows an object creator to execute arbitrary code as the operating system user running the database, via ALTER ... SET DATA TYPE primarily. Other DDL attack routes exist, such as "ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN". The system had inadequate tracking of typed values, and values were not self-identifying. Stale values could appear in data dictionary entries, PL/pgSQL variables, and many other parts of the system. PostgreSQL Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
Articles & Coverage 1
Technical POC Analysis
CWE-843: Type confusion.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-6460 is a high-severity type confusion vulnerability in PostgreSQL that enables any authenticated user with database object creation privileges to execute arbitrary code at the operating system level under the database server account. This directly threatens the confidentiality, integrity, and availability of sensitive data and infrastructure, particularly in multi-tenant, shared, and DB-as-a-Service environments where untrusted users are routinely granted CREATE rights. Leadership should prioritize remediation because a single malicious tenant could compromise the entire database host and potentially pivot to other systems.
Apply vendor patch.
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
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-124433
GHSA-7m3p-q8w8-4qgh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB