PostgreSQL PostgreSQL The PostgreSQL Database Server

Don't miss out!

Thousands of developers use stack.watch to stay informed.
Get an email whenever new security vulnerabilities are reported in PostgreSQL.

Recent PostgreSQL Security Advisories

Advisory Title Published
2026-11-13 PostgreSQL: CVE-2026-6460: PostgreSQL type confusion after ALTER ... SET DATA TYPE executes arbitrary code November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-16237: PostgreSQL INSERT ... ON CONFLICT can read or modify rows despite auto-updatable view WHERE condition November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-6467: PostgreSQL extension script schema mishandling executes arbitrary SQL November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-14661: PostgreSQL dblink and subscriptions can append to arbitrary files November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-116307: PostgreSQL plperl prepared-query use-after-free executes arbitrary code November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-116304: PostgreSQL parallel RECORD typmod use-after-free executes arbitrary code November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-18447: PostgreSQL output parameter type confusion executes arbitrary code November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-116306: PostgreSQL composite-type change during field assignment executes arbitrary code November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-116303: PostgreSQL foreign key and JSON conversions bypass EXECUTE privilege on cast functions November 13, 2026
2026-11-13 PostgreSQL: CVE-2026-16240: PostgreSQL pg_basebackup can use backup manifest content as a format string November 13, 2026

PostgreSQL EOL Dates

Ensure that you are using a supported version of PostgreSQL. Here are some end of life, and end of support dates for PostgreSQL.

Release EOL Date Status
19 November 19, 2031
Active

PostgreSQL 19 will become EOL in 5 years (in 2031).

18 November 14, 2030
Active

PostgreSQL 18 will become EOL in 4 years (in 2030).

17 November 8, 2029
Active

PostgreSQL 17 will become EOL in 3 years (in 2029).

16 November 9, 2028
Active

PostgreSQL 16 will become EOL in two years (in 2028).

15 November 11, 2027
Active

PostgreSQL 15 will become EOL next year, in November 2027.

14 November 12, 2026
EOL

PostgreSQL 14 became EOL in 2026.

13 November 13, 2025
EOL

PostgreSQL 13 became EOL in 2025.

12 November 21, 2024
EOL

PostgreSQL 12 became EOL in 2024.

11 November 9, 2023
EOL

PostgreSQL 11 became EOL in 2023.

10 November 10, 2022
EOL

PostgreSQL 10 became EOL in 2022.

9.6 November 11, 2021
EOL

PostgreSQL 9.6 became EOL in 2021.

9.5 February 11, 2021
EOL

PostgreSQL 9.5 became EOL in 2021.

9.4 February 13, 2020
EOL

PostgreSQL 9.4 became EOL in 2020.

9.3 November 8, 2018
EOL

PostgreSQL 9.3 became EOL in 2018.

9.2 November 9, 2017
EOL

PostgreSQL 9.2 became EOL in 2017.

9.1 October 27, 2016
EOL

PostgreSQL 9.1 became EOL in 2016.

9.0 October 8, 2015
EOL

PostgreSQL 9.0 became EOL in 2015.

8.4 July 24, 2014
EOL

PostgreSQL 8.4 became EOL in 2014.

8.3 February 7, 2013
EOL

PostgreSQL 8.3 became EOL in 2013.

8.2 December 5, 2011
EOL

PostgreSQL 8.2 became EOL in 2011.

By the Year

In 2026 there have been 96 vulnerabilities in PostgreSQL with an average score of 7.4 out of ten. Last year, in 2025 PostgreSQL had 8 security vulnerabilities published. That is, 88 more vulnerabilities have already been reported in 2026 as compared to last year. However, the average CVE base score of the vulnerabilities in 2026 is greater by 1.65.




Year Vulnerabilities Average Score
2026 96 7.35
2025 8 5.70
2024 10 6.09
2023 9 5.18
2022 7 7.22
2021 5 6.53
2020 7 7.55
2019 7 6.40
2018 8 8.03

It may take a day or so for new PostgreSQL vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.

Recent PostgreSQL Security Vulnerabilities

PostgreSQL <14.2518.6 Uncontrolled Search Path RCE via CREATE EXTENSION
CVE-2026-6467 7.2 - High - November 12, 2026

Uncontrolled search path element in PostgreSQL CREATE EXTENSION allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser, via ALTER SCHEMA ... RENAME or CREATE EXTENSION ... SCHEMA "$user". ALTER EXTENSION was also affected. A trusted-extension script located the wrong object and executed arbitrary SQL of the attacker's choice. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

DLL preloading

PostgreSQL pre-18.7/17.12/16.16/15.20/14.25 Type Confusion RCE via any output
CVE-2026-18447 8.8 - High - November 12, 2026

Type confusion in PostgreSQL SQL-language functions allows an object creator to execute arbitrary code as the operating system user running the database, via an output parameter of type "any". Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

PostgreSQL type conf via ALTER SET DATA TYPE (pre 18.7/17.12/16.16/15.20/14.25)
CVE-2026-6460 8.8 - High - November 12, 2026

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.

Object Type Confusion

PostgreSQL pg_basebackup format string leak (pre 18.7-14.25)
CVE-2026-16240 3.7 - Low - November 12, 2026

Use of externally-controlled format string in PostgreSQL pg_basebackup allows an attacker having already compromised a server to achieve disclosure from pg_basebackup memory, via backup manifest bytes. The vulnerability does not return the improperly-read bytes back to the attacker's server, so a successful attack would need separate implementation-specific secrets for that. Integrity impact is unlikely; in particular, the applicable formatter does not support %n. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Use of Externally-Controlled Format String

PostgreSQL <18.7 Autoupdatable view INSERT ON CONFLICT Privilege Bypass
CVE-2026-16237 5.4 - Medium - November 12, 2026

Improper protection in PostgreSQL INSERT ... ON CONFLICT on auto-updatable views allows an attacker having INSERT and UPDATE privileges on the view to read and modify every row in the view's base table, via iterated INSERT ... ON CONFLICT DO UPDATE. This bypasses the view's WHERE condition, whether or not the view is a security_barrier view. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Improper Protection of Alternate Path

PostgreSQL <18.7 sslkeylogfile File Name Injection DoS
CVE-2026-14661 8.1 - High - November 12, 2026

External control of file name in PostgreSQL dblink and CREATE/ALTER SUBSCRIPTION allows a user to achieve persistent denial of service, via appending invalid data to a chosen file. Specifically, the "sslkeylogfile" connection parameter appends data, in NSS keylog format, to a file of the user's choosing. This "sslkeylogfile" mechanism cannot add arbitrary bytes. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are also affected if libpq version 18 or later is installed and in use by the server.

External Control of File Name or Path

PostgreSQL <18.7, <17.12, <16.16, <15.20, <14.25 RLS Bypass via INSERT ON CONFLICT
CVE-2026-120154 4.3 - Medium - November 12, 2026

Improper protection in PostgreSQL INSERT ... ON CONFLICT allows an attacker having INSERT, UPDATE, and applicable SELECT privileges on the table to read every row despite row security policies, via iterated INSERT ... ON CONFLICT DO UPDATE. Unlike CVE-2026-16237, this does not facilitate improper writes. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Improper Protection of Alternate Path

PostgreSQL <14.2518.7 SQLi via extension script substitution
CVE-2026-120153 7.2 - High - November 12, 2026

SQL injection in PostgreSQL extension-script substitutions allows an attacker with database-level CREATE privilege to execute arbitrary code as the bootstrap superuser, via a schema or owner name containing newlines or other special substrings. This is similar to CVE-2023-39417, but it requires a non-bundled extension with a vulnerable script pattern. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

SQL Injection

PostgreSQL <18.7 Type Confusion in plpgsql Record Assignment RCE
CVE-2026-120151 8.8 - High - November 12, 2026

Type confusion in PostgreSQL plpgsql record-field assignment allows an object creator to execute arbitrary code as the operating system user running the database, via a reentrant domain CHECK that changes a RECORD variable's row type while a value is being cast. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

PostgreSQL pg_show_all_settings() Use-After-Free (<=16.15, <=17.11, <=18.6)
CVE-2026-120152 4.3 - Medium - November 12, 2026

Use after free in PostgreSQL pg_show_all_settings() allows a database user to retrieve memory contents, via loading a module while the function is scanning custom-variable placeholders that the module replaces and frees. Within major versions 16-18, minor versions before PostgreSQL 18.7, 17.12, and 16.16 are affected. Versions before PostgreSQL 16 are unaffected.

Dangling pointer

PostgreSQL <14.25-18.7 heap overflow in postgres_fdw batch insert
CVE-2026-120149 8.8 - High - November 12, 2026

Heap-based buffer overflow in PostgreSQL foreign batch inserts allows a foreign server to execute arbitrary code, via reporting that it inserted more rows than the server supplied. postgres_fdw can legitimately encounter this when a rule on the remote table expands an INSERT into additional rows. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Heap-based Buffer Overflow

PostgreSQL <18.7 Use-After-Free in Expanded-Record Domain Checks
CVE-2026-120150 8.8 - High - November 12, 2026

Use after free in PostgreSQL expanded-record domain checks allows an object creator to execute arbitrary code as the operating system user running the database, via repeated checks of a domain over a composite type that cause reuse of a dangling memory-context pointer. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Dangling pointer

PostgreSQL <14.25 /15.20 /16.16 /17.12 /18.7 Type Confusion RCE
CVE-2026-120148 8.1 - High - November 12, 2026

Type confusion in PostgreSQL extended statistics allows an object creator to execute arbitrary code as the operating system user running the database, via a statistics expression of an anonymous RECORD type whose backend-local type identifier denotes a different row type in another session. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

PostgreSQL <18.7/17.12/16.16/15.20/14.25: Missing Auth in REASSIGN OWNED
CVE-2026-120146 4.3 - Medium - November 12, 2026

Missing authorization in PostgreSQL REASSIGN OWNED allows a role granted INHERIT but not SET to transfer objects to the granted role. It also allows reassignment of database ownership without the CREATEDB privilege. The equivalent ALTER ... OWNER commands block this. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

AuthZ

PostgreSQL dblink Use-After-Free (pre 18.7,17.12,16.16,15.20,14.25)
CVE-2026-120147 8.8 - High - November 12, 2026

Use after free in the PostgreSQL dblink extension allows an object creator to execute arbitrary code as the operating system user running the database, via type conversion code that re-enters dblink and closes a connection whose results an outer dblink call is reading. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Dangling pointer

PostgreSQL <18.7 logical replication auth bypass OS RCE
CVE-2026-120145 8.8 - High - November 12, 2026

Missing authorization in PostgreSQL logical replication allows a compromised publisher to execute arbitrary code as the operating system user running the superuser-owned subscription, via naming a system catalog as a replication target. Only subscriptions owned by a superuser are vulnerable. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

AuthZ

PostgreSQL Use-After-Free in Functions (pre 18.7/17.12/16.16/15.20/14.25)
CVE-2026-120143 8.8 - High - November 12, 2026

Use after free in PostgreSQL trigger functions allows an object creator to execute arbitrary code as the operating system user running the database, via a cursor over a transition table. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Dangling pointer

PostgreSQL 18 <18.7 Type-Cache Confusion RCE
CVE-2026-120144 8.8 - High - November 12, 2026

Type confusion from incomplete PostgreSQL type-cache invalidation allows an object creator to execute arbitrary code as the operating system user running the database, via a composite type change while its cache entry is being populated. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

Object Type Confusion

PostgreSQL <18.7 Type Confusion in json_populate_recordset RCE
CVE-2026-120141 8.8 - High - November 12, 2026

Type confusion in PostgreSQL materialized set-returning functions allows a database user to execute arbitrary code as the operating system user running the database, via returning rows having different dynamic RECORD return types. json_populate_recordset() is one affected function. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

PostgreSQL 17/18 <18.7, <17.12 Type Confusion RCE
CVE-2026-120142 8.8 - High - November 12, 2026

Type confusion in PostgreSQL anonymous RECORD types allows an object creator to execute arbitrary code as the operating system user running the database, via row types having dropped attributes in the same positions but with different widths or alignments. Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected. Versions before PostgreSQL 17 are unaffected.

Object Type Confusion

PostgreSQL <18.7,17.12,16.16,15.20,14.25>: Integer Wraparound in Tuple OS Exec
CVE-2026-120139 8.8 - High - November 12, 2026

Integer wraparound in PostgreSQL in-memory tuple-size calculations allows a database user to execute arbitrary code as the operating system user running the database, via oversized tuple data. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Integer Overflow or Wraparound

PostgreSQL <18.7, <17.12, <16.16, <15.20, <14.25 Type Confusion RCE
CVE-2026-116335 8.8 - High - November 12, 2026

Type confusion in PostgreSQL operator commutator and negator links allows an object creator to execute arbitrary code as the operating system user running the database, via linking operators having different result types or creating inconsistent reciprocal links. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

PostgreSQL REINDEX CONCURRENTLY Drop Index RCE (pre-18.7,17.12,16.16,15.20,14.25)
CVE-2026-116336 8.8 - High - November 12, 2026

Operation on a dropped index in PostgreSQL REINDEX CONCURRENTLY allows an object creator to execute arbitrary code as the operating system user running the database, via an index expression that issues DROP INDEX. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

PostgreSQL <18.7 Use-After-Free in portal setup OS RCE
CVE-2026-116332 8.8 - High - November 12, 2026

Use after free in PostgreSQL portal setup allows an object creator to execute arbitrary code as the operating system user running the database, via running user-defined code during planning or executor startup that closes the portal currently being prepared. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Dangling pointer

PostgreSQL 17/18 Btree Scan Buffer Overread (pre 17.12, 18.7)
CVE-2026-116333 6.5 - Medium - November 12, 2026

Buffer over-read in PostgreSQL parallel B-tree scans allows an object creator to read attacker-chosen server-memory addresses, via a function incorrectly marked PARALLEL SAFE or STABLE to make participating workers build different scan-key arrays. Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected. Versions before PostgreSQL 17 are unaffected.

Buffer Over-read

PostgreSQL min/max agg type confusion RCE before 18.7/17.12/16.16/15.20/14.25
CVE-2026-116331 8.8 - High - November 12, 2026

Type confusion in PostgreSQL min/max aggregate optimization allows an object creator to execute arbitrary code as the operating system user running the database, via a user-defined aggregate whose SORTOP option causes the planner to treat the aggregate's input and result as the same type when they differ. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

PostgreSQL <18.7 Type Confusion in Statistics Import (OS Cmd Exec)
CVE-2026-116329 8.8 - High - November 12, 2026

Type confusion in PostgreSQL statistics import allows a table maintainer to execute arbitrary code as the operating system user running the database, via nested SET DATA TYPE during conversion of values to import. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

Object Type Confusion

PostgreSQL pg_dump restore.sql Untrusted Data Inclusion RCE (pre 18.7-14.25)
CVE-2026-116330 8.8 - High - November 12, 2026

Untrusted data inclusion in PostgreSQL pg_dump tar-format restore.sql allows a compromised origin server to execute arbitrary code as the client operating system account running psql, via the predictable restriction key in restore.sql. This is a gap in the fix for CVE-2025-8714. restore.sql is undocumented. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Inclusion of Functionality from Untrusted Control Sphere

PostgreSQL security_barrier info leak before 18.7-14.25
CVE-2026-116327 4.3 - Medium - November 12, 2026

Exposure of sensitive information in PostgreSQL security_barrier processing allows a database user to infer values hidden by a security_barrier view, via applying a leaky function to a CASE test value or internal parameter that indirectly represents a protected column. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

AuthZ

PostgreSQL 16-18 <18.7/17.12/16.16 Integer Wraparound in Memory Context Code Exec
CVE-2026-116328 8.8 - High - November 12, 2026

Integer wraparound in PostgreSQL generation memory contexts allows a database user to execute arbitrary code as the operating system user running the database, via freeing an allocation larger than 1 GB and causing its block to be reused for smaller chunks whose back-pointer offset cannot represent that position. Within major versions 16-18, minor versions before PostgreSQL 18.7, 17.12, and 16.16 are affected. Versions before PostgreSQL 16 are unaffected.

Integer Overflow or Wraparound

PostgreSQL plperl uncaught exception (stale sigjmp_buf) <18.7
CVE-2026-116326 8.8 - High - November 12, 2026

Uncaught exceptions in PostgreSQL plperl allow an object creator to cause use of a stale sigjmp_buf, via a tied Perl object, or a Perl object whose overloaded conversion throws while plperl is handling another error. We have not ruled out arbitrary code execution on some platform. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Operation on a Resource after Expiration or Release

PostgreSQL pltcl Use-After-Free before 18.7, 17.12, 16.16, 15.20, 14.25
CVE-2026-116323 8.8 - High - November 12, 2026

Use after free in PostgreSQL pltcl allows an object creator to execute arbitrary code as the operating system user running the database, via a domain CHECK that re-enters the Tcl interpreter and frees or changes a string still used by the outer result conversion. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Dangling pointer

PostgreSQL reindexdb SQLi before 17.12 and 18.7
CVE-2026-116325 8 - High - November 12, 2026

SQL injection in PostgreSQL reindexdb allows an object creator to execute arbitrary SQL as the database user running reindexdb, via a crafted index name embedded in the parallel catalog query for --jobs with --index. Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected. Versions before PostgreSQL 17 are unaffected.

SQL Injection

PostgreSQL <18.7 Improper Locking in Startup Allows Remote Restart
CVE-2026-116322 5.3 - Medium - November 12, 2026

Improper locking in PostgreSQL startup processing allows an unauthenticated network client to trigger a server restart, via arranging for authentication_timeout to arrive while it holds a spinlock during cancel handling. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

Improper Locking

PostgreSQL plperl Use-After-Free before 18.7, 17.12, 16.16, 15.20, 14.25
CVE-2026-116320 8.8 - High - November 12, 2026

Use after free in PostgreSQL plperl allows an object creator to execute arbitrary code as the operating system user running the database, via dropping the final reference to a Perl array or hash while PostgreSQL is converting that object. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Dangling pointer

PostgreSQL <18.7<14.25 Null-Termination Memory Disclosure
CVE-2026-116321 4.3 - Medium - November 12, 2026

Improper null termination in PostgreSQL array element assignment allows a database user to disclose server memory, via changing the final byte of a fixed-length name value to a nonzero byte and passing it to code that treats the value as a C string. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Improper Null Termination

PostgreSQL 18 <18.7 pg_dump SQLi via quoted NOT NULL column
CVE-2026-116318 8.8 - High - November 12, 2026

SQL injection in PostgreSQL pg_dump allows an object creator to execute arbitrary SQL as the user restoring the dump, via an inherited column having a child-local not-null constraint whose name requires quoting. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

SQL Injection

PostgreSQL plperl Use-After-Free before 18.7, 17.12, 16.16, 15.20, 14.25
CVE-2026-116319 8.8 - High - November 12, 2026

Use after free in PostgreSQL plperl allows an object creator to execute arbitrary code as the operating system user running the database, via reentrant return_next() calls. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Dangling pointer

PostgreSQL ts_rank_cd() Heap Buffer Overflow (pre 18.7, 17.12, 16.16, 15.20, 14.25)
CVE-2026-116317 8.8 - High - November 12, 2026

Heap-based buffer overflow in PostgreSQL ts_rank_cd() may allow a database user to execute arbitrary code as the operating system user running the database, via an invalid tsvector containing duplicate positions. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Heap-based Buffer Overflow

PostgreSQL <18.7 heap buffer overflow in tsvector_delete (RCE)
CVE-2026-116315 8.8 - High - November 12, 2026

Heap-based buffer overflow in PostgreSQL tsvector_delete() allows a database user to execute arbitrary code as the operating system user running the database, via a tsvector whose lexeme data uses a nonstandard but valid ordering that requires additional alignment padding in the result. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Heap-based Buffer Overflow

PostgreSQL <14.2518.7 AltPath Arbitrary SQL via pg_temp
CVE-2026-116316 8.8 - High - November 12, 2026

Improper protection of alternate path in PostgreSQL security-restricted operations allows an object creator to execute arbitrary SQL as the operation's caller, via a domain, enum, or range type created in pg_temp. The victim session must later run a query containing an unqualified type name, e.g. "SELECT '1'::bigint"; autovacuum and other common security-restricted operation users do not do so, so they are unaffected. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Improper Protection of Alternate Path

PostgreSQL vacuumdb Untrusted Search Path before 18.7 (CVE-2026-116313)
CVE-2026-116313 7.2 - High - November 12, 2026

Untrusted search path in PostgreSQL vacuumdb allows a database owner to execute arbitrary SQL as the database user running vacuumdb, via shadowing operators used in the --missing-stats-only catalog query. The pg_upgrade documentation recommends an affected vacuumdb invocation. Within major version 18, minor versions before PostgreSQL 18.7 are affected. Versions before PostgreSQL 18 are unaffected.

Untrusted Path

PostgreSQL pg_restore RCE via Malformed Archive (pre 18.7)
CVE-2026-116314 8.8 - High - November 12, 2026

Improper input validation in PostgreSQL pg_restore allows a non-plain archive provider to execute arbitrary code as the operating system user running pg_restore, via a crafted archive. Note a contrast: crafted archive data may legitimately cause arbitrary SQL to execute at the restore destination, but it does not legitimately confer arbitrary code execution in the pg_restore OS process. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Improper Input Validation

PostgreSQL 15-18 MERGE transition-capture bug: wrong AFTER trigger row (<=18.6)
CVE-2026-116312 5.4 - Medium - November 12, 2026

Inconsistent transition-capture state in PostgreSQL MERGE allows a table data modifier to make an AFTER trigger process the wrong new row, via a partitioned table MERGE that performs an INSERT before an UPDATE. Within major versions 15-18, minor versions before PostgreSQL 18.7, 17.12, 16.16, and 15.20 are affected. Versions before PostgreSQL 15 are unaffected.

Improper Preservation of Consistency Between Independent Representations of Shared State

PostgreSQL COPY FROM UseAfterFree (pre18.7, pre17.12)
CVE-2026-116310 4.3 - Medium - November 12, 2026

Use after free in PostgreSQL COPY FROM error reporting allows a database user to disclose portions of server memory, via a longer input row following an ignored or nullified conversion error. file_fdw reaches the same code path in affected version 18. Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected. Versions before PostgreSQL 17 are unaffected.

Dangling pointer

PostgreSQL <18.7 DROP OWNED Auth Bypass (RLS)
CVE-2026-116311 5.4 - Medium - November 12, 2026

Missing authorization in PostgreSQL DROP OWNED allows a role to remove itself from restrictive row level security policies, thereby reading or modifying rows that the policy was intended to deny, via queries after the DROP OWNED. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

AuthZ

PostgreSQL <18.7 Buffer Over-read in dict_int (memory disclosure)
CVE-2026-116308 4.3 - Medium - November 12, 2026

Buffer over-read in PostgreSQL dict_int allows a database user to disclose portions of server memory, via a zero-length token. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Buffer Over-read

PostgreSQL plperl Type Confusion (pre 18.7, 17.12, 16.16, 15.20, 14.25)
CVE-2026-116309 8.8 - High - November 12, 2026

Type confusion in PostgreSQL plperl may allow an object creator to execute arbitrary code, via blessing a non-hash reference into PostgreSQL::InServer::ARRAY. We have not confirmed or ruled out a way to control the pointer sufficiently to achieve security impact, but we are proceeding as though that is possible. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

PostgreSQL plperl Use-After-Free before 18.7, 17.12, 16.16, 15.20, 14.25
CVE-2026-116307 8.8 - High - November 12, 2026

Use after free in PostgreSQL plperl allows an object creator to execute arbitrary code as the operating system user running the database, via re-entering plperl and freeing a prepared query while an outer invocation is executing it. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Dangling pointer

PostgreSQL type confusion in composite values leads to OS RCE (pre 14.25/15.20/16.16/17.12/18.7)
CVE-2026-116306 8.8 - High - November 12, 2026

Type confusion in PostgreSQL composite-value field assignment allows an object creator to execute arbitrary code as the operating system user running the database, via changing a composite type between deforming and reforming a value. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Object Type Confusion

Stay on top of Security Vulnerabilities

Want an email whenever new vulnerabilities are published for PostgreSQL or by PostgreSQL? Click the Watch button to subscribe.

PostgreSQL
Vendor

PostgreSQL
The PostgreSQL Database Server

subscribe