PostgreSQL 13.17 vulnerabilities

85 published vulnerabilities affect PostgreSQL 13.17.

85CVEs
0critical (CVSS 9+)
59high (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 85nonenone

"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 13.17

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-2025-1094PostgreSQL quoting APIs miss neutralizing quoting syntax in text that fails encoding validation8.1Attack tool public85%13.19CVE record
CVE-2026-6473PostgreSQL server undersizes allocations, via integer wraparound8.8None known1%14.23CVE record
CVE-2026-2006PostgreSQL missing validation of multibyte character length executes arbitrary code8.8None known1%14.21CVE record
CVE-2026-2005PostgreSQL pgcrypto heap buffer overflow executes arbitrary code8.8None known1%14.21CVE record
CVE-2026-2004PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code8.8None known1%14.21CVE record
CVE-2026-6460PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-18447PostgreSQL output parameter type confusion executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-120151PostgreSQL plpgsql record-field type confusion executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-120150PostgreSQL expanded-record domain-check use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-120149PostgreSQL FDW batch-insert mismatch executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-120147PostgreSQL dblink reentrant disconnect use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-120145PostgreSQL logical replication can write to subscriber system catalogs, executing arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-120143PostgreSQL transition-table cursor use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-120141PostgreSQL materialized set-returning function type confusion executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-120139PostgreSQL tuple-size integer wraparound executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116336PostgreSQL REINDEX CONCURRENTLY does not block DROP INDEX during index functions8.8None knownunder 1%14.25CVE record
CVE-2026-116335PostgreSQL commutator or negator result-type confusion executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116332PostgreSQL portal setup use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116331PostgreSQL min/max aggregate type confusion executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116330PostgreSQL pg_dump tar restore.sql fails to block psql command injection8.8None knownunder 1%14.25CVE record
CVE-2026-116326PostgreSQL plperl tied-object exceptions follow stale sigjmp_buf8.8None knownunder 1%14.25CVE record
CVE-2026-116323PostgreSQL pltcl reentrant result conversion use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116320PostgreSQL plperl array and hash conversion use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116319PostgreSQL plperl reentrant return_next() use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116317PostgreSQL ts_rank_cd() heap buffer overflow may execute arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116316PostgreSQL security-restricted operations can create types in pg_temp, which later queries of the session find8.8None knownunder 1%14.25CVE record
CVE-2026-116315PostgreSQL tsvector_delete() heap buffer overflow executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116314PostgreSQL pg_restore executes arbitrary code due to missing non-plain archive validation8.8None knownunder 1%14.25CVE record
CVE-2026-116309PostgreSQL plperl blessed-reference type confusion may execute arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116307PostgreSQL plperl prepared-query use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116306PostgreSQL composite-type change during field assignment executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-116304PostgreSQL parallel RECORD typmod use-after-free executes arbitrary code8.8None knownunder 1%14.25CVE record
CVE-2026-19385PostgreSQL pg_dump heap buffer overflow executes arbitrary code8.8None knownunder 1%14.24CVE record
CVE-2026-18408PostgreSQL psql \unrestrict lets superuser of pg_dump origin server execute arbitrary code in psql client8.8None knownunder 1%14.24CVE record
CVE-2026-16239PostgreSQL type confusion in cursor CLOSE + DECLARE executes arbitrary code8.8None knownunder 1%14.24CVE record
CVE-2026-15742PostgreSQL fuzzystrmatch writes effectively-arbitrary addresses, via integer wraparound8.8None knownunder 1%14.24CVE record
CVE-2026-15741PostgreSQL expression deparse allows SQL injection via EXTRACT argument8.8None knownunder 1%14.24CVE record
CVE-2026-14680PostgreSQL type confusion via "internal" arguments8.8None knownunder 1%14.24CVE record
CVE-2026-14677PostgreSQL 32-bit pltcl and plperl undersize allocations, via integer wraparound8.8None knownunder 1%14.24CVE record
CVE-2026-14671PostgreSQL refint plan cache type confusion executes arbitrary code8.8None knownunder 1%14.24CVE record
CVE-2026-14670PostgreSQL plperl tied object heap buffer overflow executes arbitrary code8.8None knownunder 1%14.24CVE record
CVE-2026-14669PostgreSQL to_char heap buffer overflow executes arbitrary code8.8None knownunder 1%14.24CVE record
CVE-2026-14664PostgreSQL regexp heap buffer overflow executes arbitrary code8.8None knownunder 1%14.24CVE record
CVE-2026-14662PostgreSQL tsvector and tsquery undersize allocations, via integer wraparound8.8None knownunder 1%14.24CVE record
CVE-2026-6637PostgreSQL refint allows stack buffer overflow and SQL injection8.8None knownunder 1%14.23CVE record
CVE-2026-6477PostgreSQL libpq lo_* functions let server superuser overwrite client stack memory8.8None knownunder 1%14.23CVE record
CVE-2026-6475PostgreSQL pg_basebackup and pg_rewind can overwrite unrelated files of origin superuser choice8.8None knownunder 1%14.23CVE record
CVE-2025-8715PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server8.8None knownunder 1%13.22CVE record
CVE-2025-8714PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client8.8None knownunder 1%13.22CVE record
CVE-2026-14679PostgreSQL stack buffer overflow in argument match writes 0x0 and 0x1 to server memory8.2None knownunder 1%14.24CVE record
CVE-2026-14661PostgreSQL dblink and subscriptions can append to arbitrary files8.1None knownunder 1%14.25CVE record
CVE-2026-120148PostgreSQL extended-statistics pseudo-type confusion executes arbitrary code8.1None knownunder 1%14.25CVE record
CVE-2026-6464PostgreSQL psql COPY FROM STDIN early failure processes data lines as psql commands8.1None knownunder 1%14.24CVE record
CVE-2026-14668PostgreSQL ctid type confusion in selectivity estimator discloses derivative of arbitrary read8.1None knownunder 1%14.24CVE record
CVE-2021-23214When the server is configured to use trust authentication with a clientcert requirement or to use cert authentication, a man-in-the-middle attacker can inject…8.1None known2%–CVE record
CVE-2026-6479PostgreSQL SSL/GSS init causes denial of service, via uncontrolled recursion7.5None knownunder 1%14.23CVE record
CVE-2026-6467PostgreSQL extension script schema mishandling executes arbitrary SQL7.2None knownunder 1%14.25CVE record
CVE-2026-120153PostgreSQL extension-script substitutions allow SQL injection through object names7.2None knownunder 1%14.25CVE record
CVE-2026-6471PostgreSQL logical decoding can dlopen arbitrary file7.2None knownunder 1%14.24CVE record
CVE-2026-14663PostgreSQL pgcrypto, for OpenSSL-disabled ciphers, silently encrypts to and decrypts from cleartext6.5None knownunder 1%14.24CVE record
CVE-2026-6478PostgreSQL discloses MD5-hashed passwords via covert timing channel6.5None knownunder 1%14.23CVE record
CVE-2025-12818PostgreSQL libpq undersizes allocations, via integer wraparound5.9None knownunder 1%13.23CVE record
CVE-2025-4207PostgreSQL GB18030 encoding validation can read one byte past end of allocation for text that fails validation5.9None knownunder 1%13.21CVE record
CVE-2021-23222A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification and encryption5.9None known1%–CVE record
CVE-2026-16237PostgreSQL INSERT ... ON CONFLICT can read or modify rows despite auto-updatable view WHERE condition5.4None knownunder 1%14.25CVE record
CVE-2026-116311PostgreSQL DROP OWNED can remove restrictive row security policies from non-owned tables5.4None knownunder 1%14.25CVE record
CVE-2026-6472PostgreSQL CREATE TYPE does not check multirange schema CREATE privilege5.4None knownunder 1%14.23CVE record
CVE-2026-120154PostgreSQL INSERT ... ON CONFLICT can read rows despite row security policies4.3None knownunder 1%14.25CVE record
CVE-2026-120146PostgreSQL REASSIGN OWNED bypasses role SET and CREATEDB checks4.3None knownunder 1%14.25CVE record
CVE-2026-116327PostgreSQL security_barrier analysis can expose hidden values through indirect expressions4.3None knownunder 1%14.25CVE record
CVE-2026-116321PostgreSQL unterminated name value discloses server memory4.3None knownunder 1%14.25CVE record
CVE-2026-116308PostgreSQL dict_int reads beyond zero-length tokens4.3None knownunder 1%14.25CVE record
CVE-2026-6470PostgreSQL fails to check type USAGE privilege4.3None knownunder 1%14.24CVE record
CVE-2026-18024PostgreSQL ascii() function reads past end of buffer4.3None knownunder 1%14.24CVE record
CVE-2026-14678PostgreSQL pg_trgm picksplit reads past end of buffer4.3None knownunder 1%14.24CVE record
CVE-2026-14666PostgreSQL row security caching disregards role modifications4.2None knownunder 1%14.24CVE record
CVE-2026-6474PostgreSQL timeofday() can disclose portions of server memory4.3None knownunder 1%14.23CVE record
CVE-2026-2003PostgreSQL oidvector discloses a few bytes of memory4.3None knownunder 1%14.21CVE record
CVE-2026-16240PostgreSQL pg_basebackup can use backup manifest content as a format string3.7None knownunder 1%14.25CVE record
CVE-2026-6469PostgreSQL ALTER TABLE ALTER TYPE resets extended statistics ownership3.8None knownunder 1%14.24CVE record
CVE-2026-16241PostgreSQL ECPG integer underflow can crash the client3.8None knownunder 1%14.24CVE record
CVE-2026-14673PostgreSQL amcheck does not clear untrusted search path3.8None knownunder 1%14.24CVE record
CVE-2026-116303PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions3.1None knownunder 1%14.25CVE record
CVE-2025-12817PostgreSQL CREATE STATISTICS does not check for schema CREATE privilege3.1None knownunder 1%13.23CVE record
CVE-2025-8713PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table3.1None knownunder 1%13.22CVE 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 2 December 2026.