PostgreSQL

226 CVEs in 4 PostgreSQL products, including PostgreSQL, Psqlodbc, PostgreSQL Jdbc Driver. Newest: CVE-2026-120067 (2026-11-02).

PostgreSQL products with known CVEs

ProductCVEs
PostgreSQL203
Psqlodbc12
PostgreSQL Jdbc Driver11
Postgresql-Common1

PostgreSQL CVEs with public exploits

CVESeverityExploitation evidencePublished
CVE-2019-9193High 7.2Metasploit, 14 PoC repos2019-04-01
CVE-2013-1899Metasploit2013-04-04
CVE-2007-3280Metasploit, 1 PoC repo2007-06-19
CVE-2026-6471High 7.25 PoC repos2026-08-13
CVE-2026-14669High 8.81 PoC repo2026-08-13
CVE-2026-14662High 8.81 PoC repo2026-08-13
CVE-2026-6475High 8.81 PoC repo2026-05-14
CVE-2026-2005High 8.85 PoC repos2026-02-12
CVE-2022-21724High 7.01 PoC repo2022-02-02
CVE-2018-10936High 8.11 PoC repo2018-08-30
CVE-2018-1058High 8.82 PoC repos2018-03-02
CVE-2017-15099Medium 6.51 PoC repo2017-11-22
PostgreSQL CVEs — newest first (page 1 of 3)
CVESeverityScorePublishedSummary
CVE-2026-120067Medium5.92026-11-02For updatable cursors, which are enabled by default, psqlODBC adds hidden ctid and, for tables with OIDs, oid columns to the query. It copies each value into a…
CVE-2026-120066Medium5.32026-11-02On Unix-like systems, when logging is enabled, psqlODBC creates its log files in /tmp by default, named from the program name, user name, and process ID, with…
CVE-2026-120065High7.12026-11-02For an updatable cursor over a table without OIDs that has an auto-increment int4 column, psqlODBC uses that column to identify rows. It places the column's na…
CVE-2026-120064High7.52026-11-02Several psqlODBC entry points use an application-supplied column number or row index as an array index without validating it. SQLBindCol with a column number a…
CVE-2026-120063Medium5.92026-11-02When psqlODBC quotes a schema or table name into a 128-byte stack buffer, its length check lets it write up to two bytes past the end of the buffer for a long…
CVE-2026-120062High7.52026-11-02SQLSpecialColumns in psqlODBC splices the table and schema names it receives into its catalog query without escaping them, while the other catalog functions es…
CVE-2026-120061High7.52026-11-02The psqlODBC parser for ODBC escape sequences in application SQL text writes the argument offsets of a {fn} escape into a fixed 16-entry stack array without a…
CVE-2026-120060Medium5.92026-11-02psqlODBC trusts counts and lengths in server data in three places. SQLBulkOperations uses a server-supplied row count in a size subtraction that can underflow…
CVE-2026-120059Medium6.82026-11-02For an updatable cursor over a table without OIDs that has an auto-increment int4 column, psqlODBC places that column's name, as reported by the server, into a…
CVE-2026-120058High7.52026-11-02psqlODBC sizes its row cache from the column count of a cursor's first result, but recomputes the column count from each later FETCH reply without checking tha…
CVE-2026-120057High7.52026-11-02psqlODBC copies the reply to a large-object read (loread) into the application's buffer using the length sent by the server, without comparing it to the buffer…
CVE-2026-109448Medium5.92026-10-12Integer wraparound in psqlODBC SQLBindParameter allows an application, or an attacker who controls how many parameters the application binds on one statement…
CVE-2026-6471High7.22026-08-13Missing authorization in PostgreSQL logical decoding allows a non-superuser holding REPLICATION privilege to dlopen any file visible to the operating system ac…
CVE-2026-6470Medium4.32026-08-13Missing authorization in PostgreSQL DDL commands allows an object creator to achieve denial of service against ALTER and DROP of the type, via creating a depen…
CVE-2026-6469Low3.82026-08-13Incorrect ownership assignment in PostgreSQL ALTER TABLE ALTER TYPE command reassigns ownership of dependent statistics objects to the current user. This wron…
CVE-2026-6464High8.12026-08-13Untrusted data inclusion in PostgreSQL psql COPY may allow a server administrator to elicit execution of data lines as psql commands, via error injection. If…
CVE-2026-19385High8.82026-08-13Heap buffer overflow in PostgreSQL pg_dump of long function transform lists allows an object creator to execute arbitrary code as the operating system user run…
CVE-2026-18408High8.82026-08-13Untrusted data inclusion in pg_dump in PostgreSQL allows a malicious superuser of the origin server to inject arbitrary code for restore-time execution as the…
CVE-2026-18024Medium4.32026-08-13Buffer over-read in PostgreSQL ascii() SQL function allows a user to disclose up to 3 bytes after the end of a specific allocation, via a crafted text value…
CVE-2026-16241Low3.82026-08-13Integer underflow in PostgreSQL ECPG allows a database server administrator to achieve temporary denial of service against the ECPG client via sending a bytea…
CVE-2026-16239High8.82026-08-13Type confusion in PostgreSQL "portal"/cursor lifecycle allows a user to execute arbitrary code as the operating system user running the database, via re-creati…
CVE-2026-16238High8.82026-08-13Type confusion in PostgreSQL pg_restore_attribute_stats() allows an object creator to execute arbitrary code as the operating system user running the database…
CVE-2026-15742High8.82026-08-13Integer wraparound in PostgreSQL fuzzystrmatch allows a user to direct writes to a huge range of addresses, executing arbitrary code as the operating system us…
CVE-2026-15741High8.82026-08-13SQL injection in PostgreSQL EXTRACT() deparse allows an object owner to execute arbitrary SQL as a superuser via a hostile object definition. Attacks affect e…
CVE-2026-14681Medium4.22026-08-13Improper enforcement of message integrity in PostgreSQL GSSAPI support allows a user to negotiate GSSAPI contrary to pg_hba.conf rules, via initial direct TLS…
CVE-2026-14680High8.82026-08-13Type confusion with PostgreSQL "internal" data type arguments allows any user to execute arbitrary code as the operating system user running the database, via…
CVE-2026-14679High8.22026-08-13Stack buffer overflow in PostgreSQL argument name matching allows an object creator to achieve unknown impacts via OUT parameter count. The attack can write o…
CVE-2026-14678Medium4.32026-08-13Buffer over-read in PostgreSQL pg_trgm index picksplit function reads past end of a heap buffer. This might allow a table maintainer to infer limited memory v…
CVE-2026-14677High8.82026-08-13Integer wraparound in PostgreSQL 32-bit builds of pltcl and plperl allows an object creator to cause the server to undersize an allocation and write out-of-bou…
CVE-2026-14676High8.82026-08-13Heap buffer overflow in PostgreSQL pg_stat_statements allows the query author to execute arbitrary code as the operating system user running the database, via…
CVE-2026-14673Low3.82026-08-13Untrusted search path in PostgreSQL amcheck allows a grantee of amcheck function EXECUTE privilege to execute arbitrary functions as the owners of expression i…
CVE-2026-14672Medium5.32026-08-13Observable response discrepancy in PostgreSQL SCRAM authentication allows an unauthenticated user to test the existence of a user via observing the SCRAM itera…
CVE-2026-14671High8.82026-08-13Type confusion in PostgreSQL module "refint" allows an object creator to execute arbitrary code as the operating system user running the database. The fix for…
CVE-2026-14670High8.82026-08-13Heap buffer overflow in PostgreSQL plperl return of a tied hash allows the function owner to execute arbitrary code as the operating system user running the da…
CVE-2026-14669High8.82026-08-13Heap buffer overflow in PostgreSQL to_char(timestamptz) allows the party choosing the timezone to execute arbitrary code as the operating system user running t…
CVE-2026-14668High8.12026-08-13Type confusion regarding input of PostgreSQL ctid data type selectivity estimator allows an object creator to view a calculation derived from the value of an a…
CVE-2026-14666Medium4.22026-08-13Incomplete tracking in PostgreSQL of changes to role membership, role attributes, and database ownership allows a query to continue using cached row-level secu…
CVE-2026-14664High8.82026-08-13Heap buffer overflow in PostgreSQL regexp allows the query author to execute arbitrary code as the operating system user running the database, via text that wo…
CVE-2026-14663Medium6.52026-08-13Cleartext storage in PostgreSQL pgcrypto disabled ciphers allows a user to recover cleartext, via direct observation of the faulty ciphertext. The OpenSSL ver…
CVE-2026-14662High8.82026-08-13Integer wraparound in PostgreSQL tsvector and tsquery data type functions allows an unprivileged database user to cause the server to undersize an allocation a…
CVE-2026-54291Medium5.92026-07-06pgjdbc is an open source postgresql JDBC Driver. In releases 42.7.4 through 42.7.11, channelBinding=require connections can be silently downgraded from SCRAM-S…
CVE-2026-6638Low3.72026-05-14SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION ... REFRESH PUBLICATION allows a subscriber table creator to execute arbitrary SQL with the…
CVE-2026-6637High8.82026-05-14Stack buffer overflow in PostgreSQL module "refint" allows an unprivileged database user to execute arbitrary code as the operating system user running the dat…
CVE-2026-6575Medium4.32026-05-14Buffer over-read in PostgreSQL function pg_restore_attribute_stats() accepts array values of unmatched length, which causes query planning to read past end of…
CVE-2026-6479High7.52026-05-14Uncontrolled recursion in PostgreSQL SSL and GSS negotiation allows an attacker able to connect to a PostgreSQL AF_UNIX socket to achieve sustained denial of s…
CVE-2026-6478Medium6.52026-05-14Covert timing channel in comparison of MD5-hashed password in PostgreSQL authentication allows an attacker to recover user credentials sufficient to authentica…
CVE-2026-6477High8.82026-05-14Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(), lo_read(), lo_lseek64(), and lo_tell64() functions allows…
CVE-2026-6476High7.22026-05-14SQL injection in PostgreSQL pg_createsubscriber allows an attacker with pg_create_subscription rights to execute arbitrary SQL as a superuser. The attack take…
CVE-2026-6475High8.82026-05-14Symlink following in PostgreSQL pg_basebackup plain format and in pg_rewind allows an origin superuser to overwrite local files, e.g. /var/lib/postgres/.bashrc…
CVE-2026-6474Medium4.32026-05-14Externally-controlled format string in PostgreSQL timeofday() function allows an attacker to retrieve portions of server memory, via crafted timezone zones. V…
CVE-2026-6473High8.82026-05-14Integer wraparound in multiple PostgreSQL server features allows an unprivileged database user to cause the server to undersize an allocation and write out-of-…
CVE-2026-6472Medium5.42026-05-14Missing authorization in PostgreSQL CREATE TYPE allows an object creator to hijack other queries that use search_path to find user-defined types, including ext…
CVE-2026-42198High7.52026-04-29pgjdbc is an open source postgresql JDBC Driver. From version 42.2.0 to before version 42.7.11, pgjdbc is vulnerable to a client-side denial of service during…
CVE-2026-2007High8.22026-02-12Heap buffer overflow in PostgreSQL pg_trgm allows a database user to achieve unknown impacts via a crafted input string. The attacker has limited control over…
CVE-2026-2006High8.82026-02-12Missing validation of multibyte character length in PostgreSQL text manipulation allows a database user to issue crafted queries that achieve a buffer overrun…
CVE-2026-2005High8.82026-02-12Heap buffer overflow in PostgreSQL pgcrypto allows a ciphertext provider to execute arbitrary code as the operating system user running the database. Versions…
CVE-2026-2004High8.82026-02-12Missing validation of type of input in PostgreSQL intarray extension selectivity estimator function allows an object creator to execute arbitrary code as the o…
CVE-2026-2003Medium4.32026-02-12Improper validation of type "oidvector" in PostgreSQL allows a database user to disclose a few bytes of server memory. We have not ruled out viability of atta…
CVE-2025-49146High8.22025-06-11pgjdbc is an open source postgresql JDBC Driver. From 42.7.4 and until 42.7.7, when the PostgreSQL JDBC driver is configured with channel binding set to requir…
CVE-2024-10979High8.82024-11-14Incorrect control of environment variables in PostgreSQL PL/Perl allows an unprivileged database user to change sensitive process environment variables (e.g. P…
CVE-2024-10978Medium4.22024-11-14Incorrect privilege assignment in PostgreSQL allows a less-privileged application user to view or change different rows from those intended. An attack require…
CVE-2024-10977Low3.12024-11-14Client use of server error message in PostgreSQL allows a server not trusted under current SSL or GSS settings to furnish arbitrary non-NUL bytes to the libpq…
CVE-2024-10976Medium4.22024-11-14Incomplete tracking in PostgreSQL of tables with row security allows a reused query to view or change different rows from those intended. CVE-2023-2455 and CV…
CVE-2024-7348High8.82024-08-08Time-of-check Time-of-use (TOCTOU) race condition in pg_dump in PostgreSQL allows an object creator to execute arbitrary SQL functions as the user running pg_d…
CVE-2024-4317Low3.12024-05-14Missing authorization in PostgreSQL built-in views pg_stats_ext and pg_stats_ext_exprs allows an unprivileged database user to read most common values and othe…
CVE-2024-1597Critical10.02024-02-19pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there is n…
CVE-2024-0985High8.02024-02-08Late privilege drop in REFRESH MATERIALIZED VIEW CONCURRENTLY in PostgreSQL allows an object creator to execute arbitrary SQL functions as the command issuer…
CVE-2023-5870Low2.22023-12-10A flaw was found in PostgreSQL involving the pg_cancel_backend role that signals background workers, including the logical replication launcher, autovacuum wor…
CVE-2023-5869High8.82023-12-10A flaw was found in PostgreSQL that allows authenticated database users to execute arbitrary code through missing overflow checks during SQL array value modifi…
CVE-2023-5868Medium4.32023-12-10A memory disclosure vulnerability was found in PostgreSQL that allows remote users to access sensitive information by exploiting certain aggregate function cal…
CVE-2020-21469Medium4.42023-08-22An issue was discovered in PostgreSQL 12.2 allows attackers to cause a denial of service via repeatedly sending SIGHUP signals. NOTE: this is disputed by the v…
CVE-2023-39418Low3.12023-08-11A vulnerability was found in PostgreSQL with the use of the MERGE command, which fails to test new rows against row security policies defined for UPDATE and SE…
CVE-2023-39417High7.52023-08-11IN THE EXTENSION SCRIPT, a SQL Injection vulnerability was found in PostgreSQL if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construc…
CVE-2023-2455Medium5.42023-06-09Row security policies disregard user ID changes after inlining; PostgreSQL could permit incorrect policies to be applied in certain cases where role-specific p…
CVE-2023-2454High7.22023-06-09schema_element defeats protective search_path changes; It was found that certain database calls in PostgreSQL could permit an authed attacker with elevated dat…
CVE-2022-41862Low3.72023-03-03In PostgreSQL, a modified, unauthenticated server can send an unterminated string during the establishment of Kerberos transport encryption. In certain conditi…
CVE-2022-41946Medium4.72022-11-23pgjdbc is an open source postgresql JDBC Driver. In affected versions a prepared statement using either `PreparedStatement.setText(int, InputStream)` or `Prepa…
CVE-2022-1552High8.82022-08-31A flaw was found in PostgreSQL. There is an issue with incomplete efforts to operate safely when a privileged user is maintaining another user's objects. The A…
CVE-2021-43767Medium5.92022-08-25Odyssey passes to client unencrypted bytes from man-in-the-middle When Odyssey storage is configured to use the PostgreSQL server using 'trust' authentication…
CVE-2022-2625High8.02022-08-18A vulnerability was found in PostgreSQL. This attack requires permission to create non-temporary objects in at least one schema, the ability to lure or wait fo…
CVE-2022-31197High7.12022-08-03PostgreSQL JDBC Driver (PgJDBC for short) allows Java programs to connect to a PostgreSQL database using standard, database independent Java code. The PGJDBC i…
CVE-2022-26520Critical9.82022-03-10In pgjdbc before 42.3.3, an attacker (who controls the jdbc URL or properties) can call java.util.logging.FileHandler to write to arbitrary files through the l…
CVE-2021-23214High8.12022-03-04When 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…
CVE-2021-3677Medium6.52022-03-02A flaw was found in postgresql. A purpose-crafted query can read arbitrary bytes of server memory. In the default configuration, any authenticated database use…
CVE-2021-23222Medium5.92022-03-02A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification and encryption.
CVE-2022-21724High7.02022-02-02pgjdbc is the offical PostgreSQL JDBC Driver. A security hole was found in the jdbc driver for postgresql database while doing security research. The system us…
CVE-2021-32028Medium6.52021-10-11A flaw was found in postgresql. Using an INSERT ... ON CONFLICT ... DO UPDATE command on a purpose-crafted table, an authenticated database user could read arb…
CVE-2021-32029Medium6.52021-10-08A flaw was found in postgresql. Using an UPDATE ... RETURNING command on a purpose-crafted table, an authenticated database user could read arbitrary bytes of…
CVE-2021-32027High8.82021-06-01A flaw was found in postgresql in versions before 13.3, before 12.7, before 11.12, before 10.17 and before 9.6.22. While modifying certain SQL array values, mi…
CVE-2021-3393Medium4.32021-04-01An information leak was discovered in postgresql in versions before 13.2, before 12.6 and before 11.11. A user having UPDATE permission but not SELECT permissi…
CVE-2019-10128High7.82021-03-19A vulnerability was found in postgresql versions 11.x prior to 11.3. The Windows installer for EnterpriseDB-supplied PostgreSQL does not lock down the ACL of t…
CVE-2019-10127High8.82021-03-19A vulnerability was found in postgresql versions 11.x prior to 11.3. The Windows installer for BigSQL-supplied PostgreSQL does not lock down the ACL of the bin…
CVE-2021-20229Medium4.32021-02-23A flaw was found in PostgreSQL in versions before 13.2. This flaw allows a user with SELECT privilege on one column to craft a special query that returns all c…
CVE-2020-25696High7.52020-11-23A flaw was found in the psql interactive terminal of PostgreSQL in versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5…
CVE-2020-25695High8.82020-11-16A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. An attacker having permission to…
CVE-2020-25694High8.12020-11-16A flaw was found in PostgreSQL versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. If a client application that cre…
CVE-2020-10733High7.32020-09-16The Windows installer for PostgreSQL 9.5 - 12 invokes system-provided executables that do not have fully-qualified paths. Executables in the directory where th…
CVE-2020-14350High7.32020-08-24It was found that some PostgreSQL extensions did not use search_path safely in their installation script. An attacker with sufficient privileges could use this…
CVE-2020-14349High7.12020-08-24It was found that PostgreSQL versions before 12.4, before 11.9 and before 10.14 did not properly sanitize the search_path during logical replication. An authen…
CVE-2020-13692High7.72020-06-04PostgreSQL JDBC Driver (aka PgJDBC) before 42.2.13 allows XXE.