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
| Vector | AV: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
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Linuxmint
Postgresql
Ubuntu
Pgpdump
Psql