PostgreSQL 18.5 vulnerabilities

52 published vulnerabilities affect PostgreSQL 18.5.

52CVEs
0critical (CVSS 9+)
38high (CVSS 7–8.9)
0exploited in the wild

What to upgrade to

The newest PostgreSQL release we know of is 19.0, with no known CVEs.

Upgrade toFixesStill openNew in that release
19.0newest releaseall 52nonenone

"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.5

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.

CVECVSSExploitationEPSSFixed in
CVE-2026-6460PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-18447PostgreSQL output parameter type confusion executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120151PostgreSQL plpgsql record-field type confusion executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120150PostgreSQL expanded-record domain-check use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120149PostgreSQL FDW batch-insert mismatch executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120147PostgreSQL dblink reentrant disconnect use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120145PostgreSQL logical replication can write to subscriber system catalogs, executing arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120144PostgreSQL type-cache invalidation gap executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120143PostgreSQL transition-table cursor use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120142PostgreSQL dropped-column type confusion executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120141PostgreSQL materialized set-returning function type confusion executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-120139PostgreSQL tuple-size integer wraparound executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116336PostgreSQL REINDEX CONCURRENTLY does not block DROP INDEX during index functions8.8None knownunder 1%18.7CVE record
CVE-2026-116335PostgreSQL commutator or negator result-type confusion executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116332PostgreSQL portal setup use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116331PostgreSQL min/max aggregate type confusion executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116330PostgreSQL pg_dump tar restore.sql fails to block psql command injection8.8None knownunder 1%18.7CVE record
CVE-2026-116329PostgreSQL statistics import type confusion executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116328PostgreSQL generation memory context integer wraparound executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116326PostgreSQL plperl tied-object exceptions follow stale sigjmp_buf8.8None knownunder 1%18.7CVE record
CVE-2026-116323PostgreSQL pltcl reentrant result conversion use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116320PostgreSQL plperl array and hash conversion use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116319PostgreSQL plperl reentrant return_next() use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116318PostgreSQL pg_dump not-null constraint name allows SQL injection8.8None knownunder 1%18.7CVE record
CVE-2026-116317PostgreSQL ts_rank_cd() heap buffer overflow may execute arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116316PostgreSQL security-restricted operations can create types in pg_temp, which later queries of the session find8.8None knownunder 1%18.7CVE record
CVE-2026-116315PostgreSQL tsvector_delete() heap buffer overflow executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116314PostgreSQL pg_restore executes arbitrary code due to missing non-plain archive validation8.8None knownunder 1%18.7CVE record
CVE-2026-116309PostgreSQL plperl blessed-reference type confusion may execute arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116307PostgreSQL plperl prepared-query use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116306PostgreSQL composite-type change during field assignment executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-116304PostgreSQL parallel RECORD typmod use-after-free executes arbitrary code8.8None knownunder 1%18.7CVE record
CVE-2026-14661PostgreSQL dblink and subscriptions can append to arbitrary files8.1None knownunder 1%18.7CVE record
CVE-2026-120148PostgreSQL extended-statistics pseudo-type confusion executes arbitrary code8.1None knownunder 1%18.7CVE record
CVE-2026-116325PostgreSQL reindexdb index name quoting allows SQL injection8.0None knownunder 1%18.7CVE record
CVE-2026-6467PostgreSQL extension script schema mishandling executes arbitrary SQL7.2None knownunder 1%18.7CVE record
CVE-2026-120153PostgreSQL extension-script substitutions allow SQL injection through object names7.2None knownunder 1%18.7CVE record
CVE-2026-116313PostgreSQL "vacuumdb --missing-stats-only" lets a database owner execute code as the vacuumdb user7.2None knownunder 1%18.7CVE record
CVE-2026-116333PostgreSQL parallel B-tree array scan reads beyond array bounds6.5None knownunder 1%18.7CVE record
CVE-2026-16237PostgreSQL INSERT ... ON CONFLICT can read or modify rows despite auto-updatable view WHERE condition5.4None knownunder 1%18.7CVE record
CVE-2026-116312PostgreSQL MERGE can place the wrong row in a trigger transition table5.4None knownunder 1%18.7CVE record
CVE-2026-116311PostgreSQL DROP OWNED can remove restrictive row security policies from non-owned tables5.4None knownunder 1%18.7CVE record
CVE-2026-116322PostgreSQL pre-authentication cancel request can leak a spinlock5.3None knownunder 1%18.7CVE record
CVE-2026-120154PostgreSQL INSERT ... ON CONFLICT can read rows despite row security policies4.3None knownunder 1%18.7CVE record
CVE-2026-120152PostgreSQL pg_show_all_settings() use-after-free discloses memory4.3None knownunder 1%18.7CVE record
CVE-2026-120146PostgreSQL REASSIGN OWNED bypasses role SET and CREATEDB checks4.3None knownunder 1%18.7CVE record
CVE-2026-116327PostgreSQL security_barrier analysis can expose hidden values through indirect expressions4.3None knownunder 1%18.7CVE record
CVE-2026-116321PostgreSQL unterminated name value discloses server memory4.3None knownunder 1%18.7CVE record
CVE-2026-116310PostgreSQL COPY error context uses freed field storage4.3None knownunder 1%18.7CVE record
CVE-2026-116308PostgreSQL dict_int reads beyond zero-length tokens4.3None knownunder 1%18.7CVE record
CVE-2026-16240PostgreSQL pg_basebackup can use backup manifest content as a format string3.7None knownunder 1%18.7CVE record
CVE-2026-116303PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions3.1None knownunder 1%18.7CVE record

All PostgreSQL versions

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.