CVE-2026-6460

NameCVE-2026-6460
DescriptionType 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4905-1, DSA-6625-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
postgresql-15 (PTS)bookworm15.18-0+deb12u1vulnerable
bookworm (security)15.20-0+deb12u1fixed
postgresql-17 (PTS)trixie (security), trixie17.12-0+deb13u1fixed
postgresql-18 (PTS)forky, sid18.7-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
postgresql-15sourcebookworm15.20-0+deb12u1DLA-4905-1
postgresql-15source(unstable)(unfixed)
postgresql-17sourcetrixie17.12-0+deb13u1DSA-6625-1
postgresql-17source(unstable)(unfixed)
postgresql-18source(unstable)18.7-1

Notes

https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/
https://mehmetince.net/part-3-6-how-i-ended-up-turning-a-22-year-old-postgresql-type-confusion-primitive-into-rce-cve-2026-6460/
To completely fix CVE-2026-6460 some extensions will require re-compilation.

Search for package or bug name: Reporting problems