Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-6477 is a high-severity Use of Inherently Dangerous Function (CWE-242) vulnerability in Postgresql. Its CVSS base score is 8.8 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 49th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-30283
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V5.2.1
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Developer testing and code analysis can locate calls to known dangerous functions after they have been written.
Input validation directly enforces size checks before buffer copies.
Documented development standards and tools can explicitly prohibit or replace inherently dangerous functions.
An SDLC that incorporates security can embed rules against unsafe functions in coding and review phases.
Engineering principles can mandate avoidance of unsafe library functions during design and coding.
Memory protection limits the impact of an overflow once it occurs.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly prohibit or replace inherently dangerous functions via coding standards, reviews, and tooling.
Vulnerability identification processes such as code review or scanning detect classic buffer overflows before exploitation.
Routine patching replaces vulnerable code containing unchecked buffer copies with corrected versions.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can surface calls to unsafe functions but does not prevent their introduction.
Training teaches developers that functions like gets() are inherently unsafe and to prefer bounded alternatives, so a meaningful minority of instances are avoided through awareness; the remainder is bounded by the fallibility of human practice and by legacy code where the dangerous call is already written, similar to A.8.28 -> CWE-79 at partial.
Secure coding standards explicitly ban or restrict inherently dangerous functions.
A.8.30 carries its effect through the secure design, coding and testing practices (8.25–8.29) it contracts the supplier to apply, which reduce the use of inherently dangerous functions like gets() in delivered code the way those practices do; the same reasoning the owner applied to A.8.30 vs CWE-134, and the clause's ceiling on this verb is `partial`.
Secure authentication governs log-on procedures and credential protection, not memory-safety checks on buffer operations, so a buffer overflow remains fully exploitable regardless of authentication strength.
A.8.8's reach is disclosure-based (vulnerability scanning, vendor advisories, third-party component tracking), and CWE-242 does surface in CVEs for third-party products (e.g., CVE-2007-4004), so a nameable minority of instances are found; the majority — first-party code using gets(), strcpy(), etc. — is implementation-phase source code that A.8.8 does not read, capping the rung at `partial`.