Security Resilience

CVE-2026-6477

Memory Safety in Postgresql ≤ 14.23

Published
14 May 2026
Modified
11 November 2026
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.0070 49th percentile
Risk Priority 65 floored blend · peak EPSS

CVSS 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

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

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1189 Drive-by Compromise Initial Access
Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-2005Same product: Postgresql Postgresql
CVE-2026-2007Same product: Postgresql Postgresql
CVE-2026-14676Same product: Postgresql Postgresql
CVE-2026-14669Same product: Postgresql Postgresql
CVE-2026-14670Same product: Postgresql Postgresql
CVE-2026-19385Same product: Postgresql Postgresql
CVE-2026-14664Same product: Postgresql Postgresql
CVE-2026-14679Same product: Postgresql Postgresql
CVE-2026-14668Same product: Postgresql Postgresql
CVE-2026-14680Same product: Postgresql Postgresql

Affected Assets

postgresql
postgresql
≤ 14.23 · 15.0 — 15.18 · 16.0 — 16.14

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • 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.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prohibit or replace inherently dangerous functions via coding standards, reviews, and tooling.

ID.RA-01 partial match
blocks

Vulnerability identification processes such as code review or scanning detect classic buffer overflows before exploitation.

PR.PS-02 partial match
blocks

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.

finds

Security testing can surface calls to unsafe functions but does not prevent their introduction.

prevents

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.

prevents

Secure coding standards explicitly ban or restrict inherently dangerous functions.

prevents

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`.

blocks

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.

finds

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`.

References