CVE Watchtower

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.
Severity Level
HIGH(8.8)
Published Date
May 14, 2026
Last Modified
Nov 11, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.45%Probability
Root Weakness (CWE)
See the MITRE CWE entry for the full definition of this weakness.
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.
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:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected 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
Patched Versions
  • 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.

  1. Check whether you run Postgresql Postgresql and which version.
  2. 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 alerts

External References

Data last checked: Nov 19, 2026 04:06 UTC