p PatchFirst

PatchFirst · Latest vulnerabilities

postgresql-17 vulnerabilities

Vulnerabilities published for postgresql-17 in the last 30 days: 0. Listed in the KEV catalogue: 0.

RSS ↗
Filter vulnerabilities
Clear filters

Vulnerabilities: 20

  1. CVE-2026-6638

    Low · CVSS 3.7EPSS 0.18%Fix available

    PostgreSQL REFRESH PUBLICATION allows SQL injection via table name

    SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION ... REFRESH PUBLICATION allows a subscriber table creator to execute arbitrary SQL with the subscription's publication-side credentials. The attack takes effect at the next REFRESH PUBLICATION. Within major versions 16, 17, and 18, minor versions before PostgreSQL 18.4, 17.10, and 16.14 are affected. Versions before PostgreSQL 16 are unaffected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  2. CVE-2026-6637

    High · CVSS 8.8EPSS 0.37%Fix available

    PostgreSQL refint allows stack buffer overflow and SQL injection

    Stack buffer overflow in PostgreSQL module "refint" allows an unprivileged database user to execute arbitrary code as the operating system user running the database. A distinct attack is possible if the application declares a user-controlled column as a "refint" cascade primary key and facilitates user-controlled updates to that column. In that case, a SQL injection allows a primary key update value provider to execute arbitrary SQL as the database user performing the primary key update. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  3. CVE-2026-6575

    Medium · CVSS 4.3EPSS 0.21%Fix available

    PostgreSQL pg_restore_attribute_stats accepts values that cause query planning to read past end of stats array

    Buffer over-read in PostgreSQL function pg_restore_attribute_stats() accepts array values of unmatched length, which causes query planning to read past end of one array. This allows a table maintainer to infer memory values past that array end. Within major version 18, minor versions before PostgreSQL 18.4 are affected. Versions before PostgreSQL 18 are unaffected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  4. CVE-2026-6479

    High · CVSS 7.5EPSS 0.6%Fix available

    PostgreSQL SSL/GSS init causes denial of service, via uncontrolled recursion

    Uncontrolled recursion in PostgreSQL SSL and GSS negotiation allows an attacker able to connect to a PostgreSQL AF_UNIX socket to achieve sustained denial of service. If SSL and GSS are both disabled, an attacker can do the same via access to a PostgreSQL TCP socket. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  5. CVE-2026-6478

    Medium · CVSS 6.5EPSS 0.56%Fix available

    PostgreSQL discloses MD5-hashed passwords via covert timing channel

    Covert timing channel in comparison of MD5-hashed password in PostgreSQL authentication allows an attacker to recover user credentials sufficient to authenticate. This does not affect scram-sha-256 passwords, the default in all supported releases. However, current databases may have MD5-hashed passwords originating in upgrades from PostgreSQL 13 or earlier. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  6. CVE-2026-6477

    High · CVSS 8.8EPSS 0.45%Fix available

    PostgreSQL libpq lo_* functions let server superuser overwrite client stack memory

    Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(), lo_read(), lo_lseek64(), and lo_tell64() functions allows the server superuser to overwrite a client stack buffer with an arbitrarily-large response. Like gets(), PQfn(..., result_is_int=0, ...) stores arbitrary-length, server-determined data into a buffer of unspecified size. Because both the \lo_export command in psql and pg_dump call lo_read(), the server superuser can overwrite pg_dump or psql stack memory. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  7. CVE-2026-6476

    High · CVSS 7.2EPSS 0.29%Fix available

    PostgreSQL pg_createsubscriber allows SQL injection via subscription name

    SQL injection in PostgreSQL pg_createsubscriber allows an attacker with pg_create_subscription rights to execute arbitrary SQL as a superuser. The attack takes effect when pg_createsubscriber next runs. Within major versions 17 and 18, minor versions before PostgreSQL 18.4 and 17.10 are affected. Versions before PostgreSQL 17 are unaffected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  8. CVE-2026-6475

    High · CVSS 8.8EPSS 0.32%Fix available

    PostgreSQL pg_basebackup and pg_rewind can overwrite unrelated files of origin superuser choice

    Symlink 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, that hijack the operating system account. It will remain the case that starting the server after these commands implicitly trusts the origin superuser, due to features like shared_preload_libraries. Hence, the attack has practical implications only if one takes relevant action between these commands and server start, like moving the files to a different VM or snapshotting the VM. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  9. CVE-2026-6474

    Medium · CVSS 4.3EPSS 0.21%Fix available

    PostgreSQL timeofday() can disclose portions of server memory

    Externally-controlled format string in PostgreSQL timeofday() function allows an attacker to retrieve portions of server memory, via crafted timezone zones. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  10. CVE-2026-6473

    High · CVSS 8.8EPSS 1.01%Fix available

    PostgreSQL server undersizes allocations, via integer wraparound

    Integer wraparound in multiple PostgreSQL server features allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds. This may execute arbitrary code as the operating system user running the database. In applications that pass gigabyte-scale user inputs to the relevant database functions, the application input provider may achieve a segmentation fault. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  11. CVE-2026-6472

    Medium · CVSS 5.4EPSS 0.16%Fix available

    PostgreSQL CREATE TYPE does not check multirange schema CREATE privilege

    Missing authorization in PostgreSQL CREATE TYPE allows an object creator to hijack other queries that use search_path to find user-defined types, including extension-defined types. That is to say, the victim will execute arbitrary SQL functions of the attacker's choice. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.

    • Update to 17.10-0ubuntu0.25.10.1
    Published Updated
  12. CVE-2026-2006

    High · CVSS 8.8EPSS 1.16%Fix available

    PostgreSQL missing validation of multibyte character length executes arbitrary code

    Missing validation of multibyte character length in PostgreSQL text manipulation allows a database user to issue crafted queries that achieve a buffer overrun. That suffices to execute arbitrary code as the operating system user running the database. Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.

    • Update to 17.9-0ubuntu0.25.10.1
    Published Updated
  13. CVE-2026-2005

    High · CVSS 8.8EPSS 1.37%Public exploitFix available

    PostgreSQL pgcrypto heap buffer overflow executes arbitrary code

    Heap buffer overflow in PostgreSQL pgcrypto allows a ciphertext provider to execute arbitrary code as the operating system user running the database. Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.

    • Update to 17.9-0ubuntu0.25.10.1
    Published Updated
  14. CVE-2026-2004

    High · CVSS 8.8EPSS 1.34%Fix available

    PostgreSQL intarray missing validation of type of input to selectivity estimator executes arbitrary code

    Missing validation of type of input in PostgreSQL intarray extension selectivity estimator function allows an object creator to execute arbitrary code as the operating system user running the database. Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.

    • Update to 17.9-0ubuntu0.25.10.1
    Published Updated
  15. CVE-2026-2003

    Medium · CVSS 4.3EPSS 0.32%Fix available

    PostgreSQL oidvector discloses a few bytes of memory

    Improper 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 attacks that arrange for presence of confidential information in disclosed bytes, but they seem unlikely. Versions before PostgreSQL 18.2, 17.8, 16.12, 15.16, and 14.21 are affected.

    • Update to 17.9-0ubuntu0.25.10.1
    Published Updated
  16. CVE-2025-12818

    Medium · CVSS 5.9EPSS 0.36%Fix available

    PostgreSQL libpq undersizes allocations, via integer wraparound

    Integer wraparound in multiple PostgreSQL libpq client library functions allows an application input provider or network peer to cause libpq to undersize an allocation and write out-of-bounds by hundreds of megabytes. This results in a segmentation fault for the application using libpq. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.

    • Update to 17.7-0ubuntu0.25.10.1
    Published Updated
  17. CVE-2025-12817

    Low · CVSS 3.1EPSS 0.24%Fix available

    PostgreSQL CREATE STATISTICS does not check for schema CREATE privilege

    Missing authorization in PostgreSQL CREATE STATISTICS command allows a table owner to achieve denial of service against other CREATE STATISTICS users by creating in any schema. A later CREATE STATISTICS for the same name, from a user having the CREATE privilege, would then fail. Versions before PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 are affected.

    • Update to 17.7-0ubuntu0.25.10.1
    Published Updated
  18. CVE-2025-8715

    High · CVSS 8.8EPSS 0.43%Fix available

    PostgreSQL pg_dump newline in object name executes arbitrary code in psql client and in restore target server

    Improper neutralization of newlines in pg_dump in PostgreSQL allows a user of the origin server to inject arbitrary code for restore-time execution as the client operating system account running psql to restore the dump, via psql meta-commands inside a purpose-crafted object name. The same attacks can achieve SQL injection as a superuser of the restore target server. pg_dumpall, pg_restore, and pg_upgrade are also affected. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected. Versions before 11.20 are unaffected. CVE-2012-0868 had fixed this class of problem, but version 11.20 reintroduced it.

    • Update to 17.6-1
    Published Updated
  19. CVE-2025-8714

    High · CVSS 8.8EPSS 0.76%Fix available

    PostgreSQL pg_dump lets superuser of origin server execute arbitrary code in psql client

    Untrusted 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 client operating system account running psql to restore the dump, via psql meta-commands. pg_dumpall is also affected. pg_restore is affected when used to generate a plain-format dump. This is similar to MySQL CVE-2024-21096. Versions before PostgreSQL 17.6, 16.10, 15.14, 14.19, and 13.22 are affected.

    • Update to 17.6-1
    Published Updated
  20. CVE-2025-8713

    Low · CVSS 3.1EPSS 0.24%Fix available

    PostgreSQL optimizer statistics can expose sampled data within a view, partition, or child table

    PostgreSQL optimizer statistics allow a user to read sampled data within a view that the user cannot access. Separately, statistics allow a user to read sampled data that a row security policy intended to hide. PostgreSQL maintains statistics for tables by sampling data available in columns; this data is consulted during the query planning process. Prior to this release, a user could craft a leaky operator that bypassed view access control lists (ACLs) and bypassed row security policies in partitioning or table inheritance hierarchies. Reachable statistics data notably included histograms and most-common-values lists. CVE-2017-7484 and C

    • Update to 17.6-1
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →