PostgreSQL PostgreSQL

Don't miss out!

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

RSS Feeds for PostgreSQL security vulnerabilities

Create a CVE RSS feed including security vulnerabilities found in PostgreSQL products with stack.watch. Just hit watch, then grab your custom RSS feed url.

Products by PostgreSQL Sorted by Most Security Vulnerabilities since 2018

PostgreSQL186 vulnerabilities
The PostgreSQL Database Server

PostgreSQL JDBC Driver8 vulnerabilities
The Java JDBC Driver for PostgreSQL Database Servers also known as pgjdbc

PostgreSQL pgAdmin6 vulnerabilities
pgAdmin is an administration tool for PostgreSQL databases

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

By the Year

In 2026 there have been 109 vulnerabilities in PostgreSQL with an average score of 7.3 out of ten. Last year, in 2025 PostgreSQL had 9 security vulnerabilities published. That is, 100 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.48.




Year Vulnerabilities Average Score
2026 109 7.28
2025 9 5.80
2024 12 6.48
2023 10 5.31
2022 13 7.50
2021 5 6.53
2020 8 7.57
2019 7 6.40
2018 9 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

CVE Date Vulnerability Products
CVE-2026-6467 Nov 12, 2026
PostgreSQL <14.2518.6 Uncontrolled Search Path RCE via CREATE EXTENSION 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.
PostgreSQL
CVE-2026-6460 Nov 12, 2026
PostgreSQL type conf via ALTER SET DATA TYPE (pre 18.7/17.12/16.16/15.20/14.25) 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.
PostgreSQL
CVE-2026-18447 Nov 12, 2026
PostgreSQL pre-18.7/17.12/16.16/15.20/14.25 Type Confusion RCE via any output 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.
PostgreSQL
CVE-2026-16237 Nov 12, 2026
PostgreSQL <18.7 Autoupdatable view INSERT ON CONFLICT Privilege Bypass 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.
PostgreSQL
CVE-2026-16240 Nov 12, 2026
PostgreSQL pg_basebackup format string leak (pre 18.7-14.25) 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.
PostgreSQL
CVE-2026-14661 Nov 12, 2026
PostgreSQL <18.7 sslkeylogfile File Name Injection DoS 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.
PostgreSQL
CVE-2026-120154 Nov 12, 2026
PostgreSQL <18.7, <17.12, <16.16, <15.20, <14.25 RLS Bypass via INSERT ON CONFLICT 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.
PostgreSQL
CVE-2026-120153 Nov 12, 2026
PostgreSQL <14.2518.7 SQLi via extension script substitution 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.
PostgreSQL
CVE-2026-120152 Nov 12, 2026
PostgreSQL pg_show_all_settings() Use-After-Free (<=16.15, <=17.11, <=18.6) 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.
PostgreSQL
CVE-2026-120151 Nov 12, 2026
PostgreSQL <18.7 Type Confusion in plpgsql Record Assignment RCE 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.
PostgreSQL
Built by Foundeo Inc., with data from the National Vulnerability Database (NVD). Privacy Policy. Use of this site is governed by the Legal Terms
Disclaimer
CONTENT ON THIS WEBSITE IS PROVIDED ON AN "AS IS" BASIS AND DOES NOT IMPLY ANY KIND OF GUARANTEE OR WARRANTY, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. YOUR USE OF THE INFORMATION ON THE DOCUMENT OR MATERIALS LINKED FROM THE DOCUMENT IS AT YOUR OWN RISK. Always check with your vendor for the most up to date, and accurate information.