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.
CVE-2026-6477
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2026-05-14. NVD baseline CVSS 8.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 8.8(medium)
- EPSS
- 37.0%
- KEV
- Not listed
Published
May 14, 2026
Last Modified
July 6, 2026
Advisory Details (1)
Auto-updated May 14, 2026PostgreSQL: CVE-2026-6477: PostgreSQL libpq lo_* functions let server superuser overwrite client stack memory
https://www.postgresql.org/support/security/CVE-2026-6477/Vendor Advisories for CVE-2026-6477(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:34362Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:12 security update
- RHSA-2026:34363Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:13 security update
- RHSA-2026:34043Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:12 security update
- RHSA-2026:33497Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:15 security update
- RHSA-2026:33441Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:15 security update
- RHSA-2026:32983Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:15 security update
- RHSA-2026:32994Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql:13 security update
- RHSA-2026:29953Red Hat Product SecurityHigh
Red Hat Security Advisory: postgresql security update
- +12 more
Patch Availability(19)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(7)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2026-64772026-05-16
PostgreSQL libpq lo_* functions let server superuser overwrite client stack memory
- Red HatRHSA-2026:21182IMPORTANT2026-05-14
RHSA-2026:21182 — Important
- Red HatRHSA-2026:22878IMPORTANT2026-05-14
RHSA-2026:22878 — Important
- Red HatRHSA-2026:26181IMPORTANT2026-05-14
RHSA-2026:26181 — Important
- Red HatRHSA-2026:26203IMPORTANT2026-05-14
RHSA-2026:26203 — Important
- Red HatRHSA-2026:26204IMPORTANT2026-05-14
RHSA-2026:26204 — Important
- UbuntuUSN-8294-1MEDIUM
PostgreSQL vulnerabilities
Data Freshness Timeline
(refreshed 10× in last 7d / 118× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 185 total refreshes for this CVE.
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:31 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 21:56 UTCEG score recompute
- 2026-06-29 21:56 UTCVendor advisory
- 2026-06-29 21:56 UTCGHSA enrichment
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 11:25 UTCEG score recompute
- 2026-06-28 11:25 UTCVendor advisory
- 2026-06-28 11:25 UTCGHSA enrichment
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 22:51 UTCEG score recompute
- 2026-06-27 22:51 UTCVendor advisory
- 2026-06-27 22:51 UTCGHSA enrichment
- 2026-06-27 08:07 UTCEG score recompute
- 2026-06-27 08:07 UTCVendor advisory
- 2026-06-27 08:07 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 20:24 UTCEG score recompute
- 2026-06-26 20:24 UTCVendor advisory
- 2026-06-26 20:24 UTCGHSA enrichment
- 2026-06-25 19:18 UTCEG score recompute
- 2026-06-25 19:18 UTCVendor advisory
- 2026-06-25 19:18 UTCGHSA enrichment
- 2026-06-25 13:50 UTCEPSS rescore
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:26 UTCEPSS rescore
- 2026-06-19 19:26 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 13:57 UTCEG score recompute
- 2026-06-17 13:57 UTCVendor advisory
- 2026-06-17 13:57 UTCGHSA enrichment
- 2026-06-16 22:21 UTCEG score recompute
- 2026-06-16 22:21 UTCVendor advisory
- 2026-06-16 22:21 UTCGHSA enrichment
- 2026-06-16 17:53 UTCEPSS rescore
- 2026-06-16 11:16 UTCEG score recompute
- 2026-06-16 11:16 UTCVendor advisory
- 2026-06-16 11:16 UTCGHSA enrichment
- 2026-06-16 00:06 UTCEG score recompute
- 2026-06-16 00:06 UTCVendor advisory
- 2026-06-16 00:05 UTCGHSA enrichment
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-14 21:45 UTCEG score recompute
- 2026-06-14 21:45 UTCVendor advisory
- 2026-06-14 21:45 UTCGHSA enrichment
- 2026-06-14 10:41 UTCEG score recompute
- 2026-06-14 10:41 UTCVendor advisory
- 2026-06-14 10:41 UTCGHSA enrichment
- 2026-06-13 23:33 UTCEG score recompute
- 2026-06-13 23:33 UTCVendor advisory
- 2026-06-13 23:33 UTCGHSA enrichment
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 05:30 UTCEG score recompute
- 2026-06-13 05:30 UTCVendor advisory
- 2026-06-13 05:30 UTCGHSA enrichment
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 18:24 UTCEG score recompute
- 2026-06-12 18:24 UTCVendor advisory
- 2026-06-12 18:24 UTCGHSA enrichment
- 2026-06-12 07:20 UTCEG score recompute
- 2026-06-12 07:20 UTCVendor advisory
- 2026-06-12 07:20 UTCGHSA enrichment
- 2026-06-11 20:17 UTCEG score recompute
- 2026-06-11 20:17 UTCVendor advisory
- 2026-06-11 20:17 UTCGHSA enrichment
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-11 09:13 UTCEG score recompute
- 2026-06-11 09:13 UTCVendor advisory
- 2026-06-11 09:13 UTCGHSA enrichment
- 2026-06-10 22:19 UTCEPSS rescore
- 2026-06-10 22:10 UTCEG score recompute
- 2026-06-10 22:10 UTCVendor advisory
- 2026-06-10 22:10 UTCGHSA enrichment
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 11:06 UTCEG score recompute
- 2026-06-10 11:06 UTCVendor advisory
- 2026-06-10 11:06 UTCGHSA enrichment
- 2026-06-10 00:03 UTCEG score recompute
- 2026-06-10 00:03 UTCVendor advisory
Frequently asked(5)
What is CVE-2026-6477?
When was CVE-2026-6477 disclosed?
Is CVE-2026-6477 actively exploited?
What is the CVSS score of CVE-2026-6477?
How do I remediate CVE-2026-6477?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-6477
Is Your Infrastructure Affected by CVE-2026-6477?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.