CVE-2026-6477
HIGHDescription
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.
How to fix
This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Exploit Intelligence
Low risk: more likely to be exploited than 38% of all known CVEs.
References
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com
Related Vulnerabilities
Other CWE-242 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2017-1002157 | Critical | 9.8 | 2.9% | - | - |
| CVE-2017-0904 | High | 8.1 | 2.4% | - | Fix |
| CVE-2022-36310 | High | 8.8 | 1.5% | - | - |
| CVE-2021-42543 | High | 7.8 | 0.8% | - | - |
| CVE-2024-52324 | Critical | 9.8 | 0.7% | - | Fix |
| CVE-2021-40698 | High | 7.4 | 0.5% | - | Fix |
Common questions
How do I fix CVE-2026-6477?
Published advisories record a fix for 79 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.
Is CVE-2026-6477 being actively exploited?
Not that we know of. CVE-2026-6477 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.45% is the estimated probability that it will be exploited in the next 30 days. That is higher than 38% of all scored CVEs.
How severe is CVE-2026-6477?
CVE-2026-6477 has a CVSS v3 base score of 8.8, rated important. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2026-6477 affect?
Published advisories record a fix for postgresql-13 (Debian), libpq (Red Hat / RHEL), libpq (Rocky), libpq-debuginfo (Rocky), and 75 more. The list on this page is capped, so there may be more.
Embed a live status badge for CVE-2026-6477
Markdown
[](https://tridentstack.com/cve/CVE-2026-6477)HTML
<a href="https://tridentstack.com/cve/CVE-2026-6477"><img src="https://tridentstack.com/cve/badge/CVE-2026-6477.svg" alt="CVE-2026-6477"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-08-25.