Exploit database

Vulnerability

CVE-2026-6460

PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · PostgreSQL

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

3 sources
gabrielunknown/cve-2026-6460_postgresql_rce
GH-09cba6a5f8d912fd607bef11f52447fbGitHubUnofficial GitHub sourcePreferred

(PoC Exploit for CVE-2026-6460) Remote Code Execution via composite type confusion in PostgreSQL (all versions prior to 14.25 / 15.20 / 16.16 / 17.12 / 18.7)

2026-11-2312 files · 18 stars
chor4o/cve-2026-6460-poc
GH-d545b1707ee0c8983097dd5cba452105GitHubUnofficial GitHub source

chor4o/cve-2026-6460-poc source repository

2026-11-132 files · 2 stars