CVE-2026-6477
Published:May 14, 2026
Updated:May 18, 2026
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.
Affected Packages
https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_17_0 <REL_17_10Fix Suggestion:
Update to version REL_17_10https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_15_0 <REL_15_18Fix Suggestion:
Update to version REL_15_18https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_18_0 <REL_18_4Fix Suggestion:
Update to version REL_18_4https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_16_0 <REL_16_14Fix Suggestion:
Update to version REL_16_14https://github.com/postgres/postgres.git (GITHUB):
Affected version(s) >=REL_14_0 <REL_14_23Fix Suggestion:
Update to version REL_14_23Related Resources (1)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Use of Inherently Dangerous Function
EPSS
Base Score:
0.04