CVE-2026-6460
Received Received - Intake

Type Confusion in PostgreSQL Leads to Arbitrary Code Execution

Vulnerability report for CVE-2026-6460, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-12

Last updated on: 2026-11-12

Assigner: PostgreSQL

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-12
Last Modified
2026-11-12
Generated
2026-11-12
AI Q&A
2026-11-12
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
postgresql postgresql to 18.7|end_excluding=17.12|end_excluding=16.16|end_excluding=15.20|end_excluding=14.25 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-843 The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a type confusion vulnerability in PostgreSQL where an object creator can execute arbitrary code as the operating system user running the database. It occurs primarily through the ALTER ... SET DATA TYPE command but also via other DDL attack routes like 'ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN'. The issue stems from inadequate tracking of typed values, causing stale values to appear in data dictionary entries, PL/pgSQL variables, and other system parts.

Detection Guidance

Check PostgreSQL version with 'psql --version' or 'SELECT version();'. Affected versions are before 18.7, 17.12, 16.16, 15.20, and 14.25. Review logs for unusual ALTER commands or DDL operations like 'ALTER TABLE ... ADD COLUMN' followed by ROLLBACK.

Impact Analysis

An attacker with database object creation privileges could exploit this to execute arbitrary code with the privileges of the PostgreSQL operating system user. This could lead to full system compromise, data theft, or unauthorized modifications to the database and underlying system.

Compliance Impact

This vulnerability could lead to unauthorized access or modification of sensitive data, violating compliance requirements under GDPR, HIPAA, and other regulations. Organizations using affected PostgreSQL versions may face legal penalties, reputational damage, and increased audit scrutiny.

Mitigation Strategies

Upgrade PostgreSQL to version 18.7 or later, 17.12, 16.16, 15.20, or 14.25 immediately. Restrict database object creation privileges to trusted users only. Monitor for suspicious ALTER or DDL commands in logs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-6460. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...