Skip to main content

PostgreSQL EUVDEUVD-2026-124433

| CVE-2026-6460 HIGH
Access of Resource Using Incompatible Type (Type Confusion) (CWE-843)
2026-11-12 PostgreSQL GHSA-7m3p-q8w8-4qgh
8.8
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as object-creator role
  2. Delivery
    Issue ALTER ... SET DATA TYPE DDL
  3. Exploit
    Trigger type confusion on stale values
  4. Execution
    Execute arbitrary code as database OS user
  5. Impact
    Full 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.

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

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

Alert me

AnalysisAIv1 – 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

PostgreSQL 16 <16.16
PostgreSQL 18 <18.7
PostgreSQL 0 <14.25
PostgreSQL 15 <15.20
PostgreSQL 17 <17.12

Affected Packages

euvd postgresql fix: 14.25, 15.20, 16.16, 17.12, 18.7

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

Vendor (PostgreSQL) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 15:02 EUVD
CVE Published
Nov 12, 2026 - 14:15 cve.org
HIGH 8.8

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 51% exploitable
Prevalence
High
PostgreSQL is among the most widely deployed enterprise and cloud databases
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
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 Yes
EPSS 0.6%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

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

Vendor StatusVendor

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