PostgreSQL 18.6 vulnerabilities
52 published vulnerabilities affect PostgreSQL 18.6.
What to upgrade to
The newest PostgreSQL release we know of is 19.0, with no known CVEs.
| Upgrade to | Fixes | Still open | New in that release |
|---|---|---|---|
| 19.0newest release | all 52 | none | none |
"Fixes": CVEs on this page that don't affect that release. "New in that release": CVEs that affect it and not this one.
CVEs affecting PostgreSQL 18.6
Worst first: ranked by Dawnsentry's score for a device that faces the internet (CVSS, plus known exploitation and EPSS). "Fixed in" is the first release that carries the fix, where the source names one.
| CVE | CVSS | Exploitation | EPSS | Fixed in |
|---|---|---|---|---|
| CVE-2026-6460PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-18447PostgreSQL output parameter type confusion executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120151PostgreSQL plpgsql record-field type confusion executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120150PostgreSQL expanded-record domain-check use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120149PostgreSQL FDW batch-insert mismatch executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120147PostgreSQL dblink reentrant disconnect use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120145PostgreSQL logical replication can write to subscriber system catalogs, executing arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120144PostgreSQL type-cache invalidation gap executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120143PostgreSQL transition-table cursor use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120142PostgreSQL dropped-column type confusion executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120141PostgreSQL materialized set-returning function type confusion executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-120139PostgreSQL tuple-size integer wraparound executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116336PostgreSQL REINDEX CONCURRENTLY does not block DROP INDEX during index functions | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116335PostgreSQL commutator or negator result-type confusion executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116332PostgreSQL portal setup use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116331PostgreSQL min/max aggregate type confusion executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116330PostgreSQL pg_dump tar restore.sql fails to block psql command injection | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116329PostgreSQL statistics import type confusion executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116328PostgreSQL generation memory context integer wraparound executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116326PostgreSQL plperl tied-object exceptions follow stale sigjmp_buf | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116323PostgreSQL pltcl reentrant result conversion use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116320PostgreSQL plperl array and hash conversion use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116319PostgreSQL plperl reentrant return_next() use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116318PostgreSQL pg_dump not-null constraint name allows SQL injection | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116317PostgreSQL ts_rank_cd() heap buffer overflow may execute arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116316PostgreSQL security-restricted operations can create types in pg_temp, which later queries of the session find | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116315PostgreSQL tsvector_delete() heap buffer overflow executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116314PostgreSQL pg_restore executes arbitrary code due to missing non-plain archive validation | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116309PostgreSQL plperl blessed-reference type confusion may execute arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116307PostgreSQL plperl prepared-query use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116306PostgreSQL composite-type change during field assignment executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-116304PostgreSQL parallel RECORD typmod use-after-free executes arbitrary code | 8.8 | None known | under 1% | 18.7CVE record |
| CVE-2026-14661PostgreSQL dblink and subscriptions can append to arbitrary files | 8.1 | None known | under 1% | 18.7CVE record |
| CVE-2026-120148PostgreSQL extended-statistics pseudo-type confusion executes arbitrary code | 8.1 | None known | under 1% | 18.7CVE record |
| CVE-2026-116325PostgreSQL reindexdb index name quoting allows SQL injection | 8.0 | None known | under 1% | 18.7CVE record |
| CVE-2026-6467PostgreSQL extension script schema mishandling executes arbitrary SQL | 7.2 | None known | under 1% | 18.7CVE record |
| CVE-2026-120153PostgreSQL extension-script substitutions allow SQL injection through object names | 7.2 | None known | under 1% | 18.7CVE record |
| CVE-2026-116313PostgreSQL "vacuumdb --missing-stats-only" lets a database owner execute code as the vacuumdb user | 7.2 | None known | under 1% | 18.7CVE record |
| CVE-2026-116333PostgreSQL parallel B-tree array scan reads beyond array bounds | 6.5 | None known | under 1% | 18.7CVE record |
| CVE-2026-16237PostgreSQL INSERT ... ON CONFLICT can read or modify rows despite auto-updatable view WHERE condition | 5.4 | None known | under 1% | 18.7CVE record |
| CVE-2026-116312PostgreSQL MERGE can place the wrong row in a trigger transition table | 5.4 | None known | under 1% | 18.7CVE record |
| CVE-2026-116311PostgreSQL DROP OWNED can remove restrictive row security policies from non-owned tables | 5.4 | None known | under 1% | 18.7CVE record |
| CVE-2026-116322PostgreSQL pre-authentication cancel request can leak a spinlock | 5.3 | None known | under 1% | 18.7CVE record |
| CVE-2026-120154PostgreSQL INSERT ... ON CONFLICT can read rows despite row security policies | 4.3 | None known | under 1% | 18.7CVE record |
| CVE-2026-120152PostgreSQL pg_show_all_settings() use-after-free discloses memory | 4.3 | None known | under 1% | 18.7CVE record |
| CVE-2026-120146PostgreSQL REASSIGN OWNED bypasses role SET and CREATEDB checks | 4.3 | None known | under 1% | 18.7CVE record |
| CVE-2026-116327PostgreSQL security_barrier analysis can expose hidden values through indirect expressions | 4.3 | None known | under 1% | 18.7CVE record |
| CVE-2026-116321PostgreSQL unterminated name value discloses server memory | 4.3 | None known | under 1% | 18.7CVE record |
| CVE-2026-116310PostgreSQL COPY error context uses freed field storage | 4.3 | None known | under 1% | 18.7CVE record |
| CVE-2026-116308PostgreSQL dict_int reads beyond zero-length tokens | 4.3 | None known | under 1% | 18.7CVE record |
| CVE-2026-16240PostgreSQL pg_basebackup can use backup manifest content as a format string | 3.7 | None known | under 1% | 18.7CVE record |
| CVE-2026-116303PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions | 3.1 | None known | under 1% | 18.7CVE record |
How this list is made
These are the CVEs Dawnsentry matches to each PostgreSQL version, with the same engine its customers use. Where the vendor publishes its own advisory, that decides whether a version is affected, down to hotfix level; otherwise the CVE record and NVD's version data decide. CVSS comes from NVD or the reporting organisation, exploitation from CISA's Known Exploited Vulnerabilities catalogue, CISA's ratings, Metasploit and Nuclei, and EPSS (the probability of exploitation in the next 30 days) from FIRST. The list is rebuilt every day. Always confirm against the vendor's advisory before you act on it.
Updated 1 December 2026.