Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
PostgreSQL versions 14-18: Unauthorized Access and Data Exposure
published 5 months ago
Summary
PostgreSQL versions 14 to 18 have several security issues that could allow attackers to gain unauthorized access, crash the database, or expose sensitive information. These issues can be exploited through various means, including SQL injection and user input manipulation. To protect your database, update to the latest version of PostgreSQL as soon as possible.
What to do
- Update canonical postgresql-14 to version 14.23-0ubuntu0.22.04.1.
- Update canonical postgresql-16 to version 16.14-0ubuntu0.24.04.1.
- Update canonical postgresql-17 to version 17.10-0ubuntu0.25.10.1.
- Update canonical postgresql-18 to version 18.4-0ubuntu0.26.04.1.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Ubuntu:22.04:LTS | canonical | postgresql-14 |
< 14.23-0ubuntu0.22.04.1 Fix: upgrade to 14.23-0ubuntu0.22.04.1
|
| Ubuntu:24.04:LTS | canonical | postgresql-16 |
< 16.14-0ubuntu0.24.04.1 Fix: upgrade to 16.14-0ubuntu0.24.04.1
|
| Ubuntu:25.10 | canonical | postgresql-17 |
< 17.10-0ubuntu0.25.10.1 Fix: upgrade to 17.10-0ubuntu0.25.10.1
|
| Ubuntu:26.04:LTS | canonical | postgresql-18 |
< 18.4-0ubuntu0.26.04.1 Fix: upgrade to 18.4-0ubuntu0.26.04.1
|
Original advisory text
postgresql-14, postgresql-16, postgresql-17, postgresql-18 vulnerabilities
It was discovered that PostgreSQL did not correctly enforce authorization
for CREATE TYPE. An attacker could possibly use this issue to execute
arbitrary SQL functions. (CVE-2026-6472)
It was discovered that PostgreSQL incorrectly handled large user input in
multiple server features. An attacker could possibly use this issue to
cause PostgreSQL to crash, resulting in a denial of service, or execute
arbitrary code. (CVE-2026-6473)
It was discovered that PostgreSQL incorrectly handled format strings in
the timeofday() function. An attacker could possibly use this issue to
obtain sensitive information. (CVE-2026-6474)
It was discovered that PostgreSQL incorrectly followed symbolic links in
pg_basebackup and pg_rewind. An attacker could possibly use this issue to
overwrite local files and execute arbitrary code. (CVE-2026-6475)
It was discovered that PostgreSQL had an SQL injection vulnerability in
pg_createsubscriber. An attacker could possibly use this issue to execute
arbitrary SQL as a superuser. This issue only affected Ubuntu 25.10 and
Ubuntu 26.04 LTS. (CVE-2026-6476)
It was discovered that PostgreSQL used an unsafe libpq function in large
object operations. An attacker could possibly use this issue to overwrite
client memory and execute arbitrary code. (CVE-2026-6477)
It was discovered that PostgreSQL did not compare MD5-hashed passwords in
constant time. An attacker could possibly use this issue to obtain
sensitive information. (CVE-2026-6478)
It was discovered that PostgreSQL had uncontrolled recursion during SSL and
GSS negotiation. An attacker could possibly use this issue to cause a
denial of service. (CVE-2026-6479)
It was discovered that PostgreSQL incorrectly handled array length
mismatches in pg_restore_attribute_stats(). An attacker could possibly use
this issue to obtain sensitive information. This issue only affected Ubuntu
26.04 LTS. (CVE-2026-6575)
It was discovered that PostgreSQL had a stack buffer overflow in the refint
module. An attacker could use this issue to cause PostgreSQL to crash,
resulting in a denial of service, or possibly execute arbitrary code.
(CVE-2026-6637)
It was discovered that PostgreSQL had an SQL injection vulnerability in
logical replication REFRESH PUBLICATION. An attacker could possibly use
this issue to execute arbitrary SQL. This issue only affected Ubuntu 24.04
LTS, Ubuntu 25.10, and Ubuntu 26.04 LTS. (CVE-2026-6638)
for CREATE TYPE. An attacker could possibly use this issue to execute
arbitrary SQL functions. (CVE-2026-6472)
It was discovered that PostgreSQL incorrectly handled large user input in
multiple server features. An attacker could possibly use this issue to
cause PostgreSQL to crash, resulting in a denial of service, or execute
arbitrary code. (CVE-2026-6473)
It was discovered that PostgreSQL incorrectly handled format strings in
the timeofday() function. An attacker could possibly use this issue to
obtain sensitive information. (CVE-2026-6474)
It was discovered that PostgreSQL incorrectly followed symbolic links in
pg_basebackup and pg_rewind. An attacker could possibly use this issue to
overwrite local files and execute arbitrary code. (CVE-2026-6475)
It was discovered that PostgreSQL had an SQL injection vulnerability in
pg_createsubscriber. An attacker could possibly use this issue to execute
arbitrary SQL as a superuser. This issue only affected Ubuntu 25.10 and
Ubuntu 26.04 LTS. (CVE-2026-6476)
It was discovered that PostgreSQL used an unsafe libpq function in large
object operations. An attacker could possibly use this issue to overwrite
client memory and execute arbitrary code. (CVE-2026-6477)
It was discovered that PostgreSQL did not compare MD5-hashed passwords in
constant time. An attacker could possibly use this issue to obtain
sensitive information. (CVE-2026-6478)
It was discovered that PostgreSQL had uncontrolled recursion during SSL and
GSS negotiation. An attacker could possibly use this issue to cause a
denial of service. (CVE-2026-6479)
It was discovered that PostgreSQL incorrectly handled array length
mismatches in pg_restore_attribute_stats(). An attacker could possibly use
this issue to obtain sensitive information. This issue only affected Ubuntu
26.04 LTS. (CVE-2026-6575)
It was discovered that PostgreSQL had a stack buffer overflow in the refint
module. An attacker could use this issue to cause PostgreSQL to crash,
resulting in a denial of service, or possibly execute arbitrary code.
(CVE-2026-6637)
It was discovered that PostgreSQL had an SQL injection vulnerability in
logical replication REFRESH PUBLICATION. An attacker could possibly use
this issue to execute arbitrary SQL. This issue only affected Ubuntu 24.04
LTS, Ubuntu 25.10, and Ubuntu 26.04 LTS. (CVE-2026-6638)
References
- https://ubuntu.com/security/notices/USN-8294-1 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-6472 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6473 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6474 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6475 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6476 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6477 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6478 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6479 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6575 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6637 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-6638 Third Party Advisory
Timeline
Published21 May 2026
Updated21 May 2026
First seen21 May 2026
Sources
USN-8294-1 · OSV
Track software like this
Free during beta