CVE-2026-6477: Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(), lo_read(
CVE-2026-6477 is a high-severity flaw (CVSS 8.8) affecting postgresql. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
A fixed release or distro patch exists.
Last updated 2026-08-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Advisories and coverage
Official advisories
- AlmaLinux Errata: [ALSA-2026:44308] Important: libpq security update 2026-07-23
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-6477?
postgresql: upgrade to 14.23, 15.18, 16.14, 17.10, 18.4. Exact commands for each OS are on this page.
Is CVE-2026-6477 being exploited?
CVE-2026-6477 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-6477 affect?
CVE-2026-6477 affects postgresql. Severity is high (CVSS 8.8). 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-larg
How urgent is CVE-2026-6477?
Priority 41/100. High severity
Software pages
Related CVEs
- CVE-2026-6471 HIGH 7.2 UPGRADE Missing authorization in PostgreSQL logical decoding allows a non-superuser holding REPLICATION privilege to d
- CVE-2026-6470 MEDIUM 4.3 UPGRADE Missing authorization in PostgreSQL DDL commands allows an object creator to achieve denial of service against
- CVE-2026-6469 LOW 3.8 UPGRADE Incorrect ownership assignment in PostgreSQL ALTER TABLE ALTER TYPE command reassigns ownership of dependent s
- CVE-2026-6464 HIGH 8.1 UPGRADE Untrusted data inclusion in PostgreSQL psql COPY may allow a server administrator to elicit execution of data
- CVE-2026-19385 HIGH 8.8 UPGRADE Heap buffer overflow in PostgreSQL pg_dump of long function transform lists allows an object creator to execut