CVE-2026-6477Postgresql Postgresql
NVDCVSS scored by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Vulnerability Summary
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.
CVSS v3.1 Base Metrics — Score 8.8 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Postgresql Postgresql < 14.23
- Postgresql Postgresql >= 15.0 and < 15.18
- Postgresql Postgresql >= 16.0 and < 16.14
- Postgresql Postgresql >= 17.0 and < 17.10
- Postgresql Postgresql >= 18.0 and < 18.4
- Postgresql Postgresql 14.23
- Postgresql Postgresql 15.18
- Postgresql Postgresql 16.14
- Postgresql Postgresql 17.10
- Postgresql Postgresql 18.4
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run Postgresql Postgresql and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- May 14, 2026Published
- Nov 11, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Postgresql Postgresql CVEsYou are reading CVE-2026-6477. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsRelated Coverage
External References
- Patchhttps://www.postgresql.org/support/security/CVE-2026-6477/
- Referencehttps://access.redhat.com/errata/RHSA-2026:21182
- Referencehttps://access.redhat.com/errata/RHSA-2026:22878
- Referencehttps://access.redhat.com/errata/RHSA-2026:26181
- Referencehttps://access.redhat.com/errata/RHSA-2026:26203
- Referencehttps://access.redhat.com/errata/RHSA-2026:26204
- Referencehttps://access.redhat.com/errata/RHSA-2026:26524
- Referencehttps://access.redhat.com/errata/RHSA-2026:26525
- Referencehttps://access.redhat.com/errata/RHSA-2026:26561
- Referencehttps://access.redhat.com/errata/RHSA-2026:27718
- Referencehttps://access.redhat.com/errata/RHSA-2026:27738
- Referencehttps://access.redhat.com/errata/RHSA-2026:27741
- Referencehttps://access.redhat.com/errata/RHSA-2026:27742
- Referencehttps://access.redhat.com/errata/RHSA-2026:27743
- Referencehttps://access.redhat.com/errata/RHSA-2026:28037
- Referencehttps://access.redhat.com/errata/RHSA-2026:28143
- Referencehttps://access.redhat.com/errata/RHSA-2026:28208
- Referencehttps://access.redhat.com/errata/RHSA-2026:28999
- Referencehttps://access.redhat.com/errata/RHSA-2026:29212
- Referencehttps://access.redhat.com/errata/RHSA-2026:29815
- Referencehttps://access.redhat.com/errata/RHSA-2026:29904
- Referencehttps://access.redhat.com/errata/RHSA-2026:29953
- Referencehttps://access.redhat.com/errata/RHSA-2026:32983
- Referencehttps://access.redhat.com/errata/RHSA-2026:32994
- Referencehttps://access.redhat.com/errata/RHSA-2026:33441
- Referencehttps://access.redhat.com/errata/RHSA-2026:33497
- Referencehttps://access.redhat.com/errata/RHSA-2026:34043
- Referencehttps://access.redhat.com/errata/RHSA-2026:34362
- Referencehttps://access.redhat.com/errata/RHSA-2026:34363
- Referencehttps://access.redhat.com/errata/RHSA-2026:35880
- Referencehttps://access.redhat.com/errata/RHSA-2026:42555
- Referencehttps://access.redhat.com/errata/RHSA-2026:44308
- Referencehttps://access.redhat.com/errata/RHSA-2026:44391
- Referencehttps://access.redhat.com/errata/RHSA-2026:44420
- Referencehttps://access.redhat.com/errata/RHSA-2026:44481
- Referencehttps://access.redhat.com/errata/RHSA-2026:47090
- Referencehttps://access.redhat.com/errata/RHSA-2026:49521
- Referencehttps://access.redhat.com/errata/RHSA-2026:49908
- Referencehttps://access.redhat.com/errata/RHSA-2026:49909
- Referencehttps://access.redhat.com/errata/RHSA-2026:50779
- Referencehttps://access.redhat.com/errata/RHSA-2026:50863
- Referencehttps://access.redhat.com/errata/RHSA-2026:54760
- Referencehttps://access.redhat.com/errata/RHSA-2026:58981
- Vendor Advisoryhttps://access.redhat.com/security/cve/CVE-2026-6477
- Issue Trackinghttps://bugzilla.redhat.com/show_bug.cgi?id=2477442
- Referencehttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6477.json
Data last checked: Nov 19, 2026 04:06 UTC