# CVE-2026-6460: PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-12 · Modified: 2026-11-13
- Aliases: DEBIAN-CVE-2026-6460, ALPINE-CVE-2026-6460, UBUNTU-CVE-2026-6460
- Record: https://cvemate.com/vulnerability/CVE-2026-6460 · JSON: https://cvemate.com/vulnerability/CVE-2026-6460/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.635%, percentile 51.87%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine postgresql15 (Alpine Linux): \< 15.20-r0
- alpine postgresql16 (Alpine Linux): \< 16.16-r0
- alpine postgresql17 (Alpine Linux): \< 17.12-r0
- alpine postgresql18 (Alpine Linux): \< 18.7-r0
- debian postgresql-15 (Debian): All versions (No fix recorded) \| \< 15.20-0+deb12u1
- debian postgresql-17 (Debian): All versions (No fix recorded) \| \< 17.12-0+deb13u1
- debian postgresql-18 (Debian): All versions (No fix recorded) \| \< 18.7-1
- ubuntu postgresql-10 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-12 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-14 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-16 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-18 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): All versions (No fix recorded)

## References

- <https://www.postgresql.org/support/security/CVE-2026-6460/>
- <https://security-tracker.debian.org/tracker/CVE-2026-6460>
- <https://security.alpinelinux.org/vuln/CVE-2026-6460>
- <https://ubuntu.com/security/CVE-2026-6460>
- <https://www.cve.org/CVERecord?id=CVE-2026-6460>
- <https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/>

---

Data as of 2026-12-05T03:12:42.868Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
