CVEFinder.io

CVE-2026-6477

⚠️ high
🔍 Scan for this CVE
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

Description

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 Score
8.8
High
EPSS Score
0.1
Exploit Probability
Published Date
2026-05-14
First Seen: 2026-05-17
📊 Relative Risk Intelligence

This CVE is High Risk - more severe than 81.1% of all 328,009 vulnerabilities in our database.

#62,016
Top 25% most severe
Severity Percentile
🎯 CISA SSVC Assessment Updated: May 14, 2026
🔍 Exploitation Status
None
No known exploits
⚙️ Automatable
NO
Requires human interaction
💥 Technical Impact
Total
Complete system compromise possible
🏆 Discovered By
The PostgreSQL project thanks Yu Kunpeng and Martin Heistermann for reporting this problem.
SSVC data provided by CISA
Last Modified 2026-05-18
Source NVD 🔗
CVSS Vector 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE IDs (Weakness Types)

📦 Affected Products 5

🔗 References 1

🔗 Related CVEs 6

CVE ID Severity CVSS EPSS Summary Published
CVE-2026-6472 🔶 medium 5.4 0.0 Missing authorization in PostgreSQL CREATE TYPE allows an object creator to hijack other queries that use search_path to... 2026-05-14
CVE-2026-6473 ⚠️ high 8.8 0.1 Integer wraparound in multiple PostgreSQL server features allows an unprivileged database user to cause the server to un... 2026-05-14
CVE-2026-6474 🔶 medium 4.3 0.0 Externally-controlled format string in PostgreSQL timeofday() function allows an attacker to retrieve portions of server... 2026-05-14
CVE-2026-6475 ⚠️ high 8.8 0.1 Symlink following in PostgreSQL pg_basebackup plain format and in pg_rewind allows an origin superuser to overwrite loca... 2026-05-14
CVE-2026-6476 ⚠️ high 7.2 0.0 SQL injection in PostgreSQL pg_createsubscriber allows an attacker with pg_create_subscription rights to execute arbitra... 2026-05-14
CVE-2026-6478 🔶 medium 6.5 0.1 Covert timing channel in comparison of MD5-hashed password in PostgreSQL authentication allows an attacker to recover us... 2026-05-14
These CVEs affect the same products