PT-2026-40922 · Postgresql Global Development Group+3 · Postgresql+4

Martin Heistermann

+1

·

Published

2026-05-14

·

Updated

2026-05-22

·

CVE-2026-6477

CVSS v2.0

10

High

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions PostgreSQL versions prior to 18.4 PostgreSQL versions prior to 17.10 PostgreSQL versions prior to 16.14 PostgreSQL versions prior to 15.18 PostgreSQL versions prior to 14.23
Description The use of the dangerous function PQfn(..., result is int=0, ...) within the libpq lo export(), lo read(), lo lseek64(), and lo tell64() functions allows a server superuser to overwrite a client stack buffer with an arbitrarily-large response. This occurs because the function stores server-determined data of arbitrary length into a buffer of unspecified size. Consequently, since the lo export command in psql and pg dump utilize lo read(), a server superuser can overwrite the stack memory of psql or pg dump.
Recommendations Update to version 18.4 or later. Update to version 17.10 or later. Update to version 16.14 or later. Update to version 15.18 or later. Update to version 14.23 or later.

Fix

Stack Overflow

Weakness Enumeration

Related Identifiers

BDU:2026-07098
BIT-POSTGRESQL-2026-6477
CVE-2026-6477
ECHO-C9B4-8303-30F9
OESA-2026-2381
OESA-2026-2382
OESA-2026-2413
OESA-2026-2414
OPENSUSE-SU-2026:10806-1
OPENSUSE-SU-2026:10807-1
OPENSUSE-SU-2026:10808-1
OPENSUSE-SU-2026:10809-1
OPENSUSE-SU-2026:10828-1
USN-8294-1

Affected Products

Linuxmint
Postgresql
Ubuntu
Pgpdump
Psql