Improper Null Termination in PostgreSQL Allows Memory Disclosure
CVE-2026-116321

4.3MEDIUM

Key Information:

Vendor

PostgreSQL

Vendor
CVE Published:
12 November 2026

What is CVE-2026-116321?

An improper null termination vulnerability exists in PostgreSQL array element assignment, which allows a database user to inadvertently disclose server memory. This occurs when the final byte of a fixed-length name value is manipulated to become a nonzero byte. When this altered value is processed by code that interprets it as a C string, sensitive information stored in memory may be revealed, potentially leading to unauthorized access or exploitation. Users of PostgreSQL versions prior to 18.7, 17.12, 16.16, 15.20, and 14.25 should take immediate action to mitigate risks associated with this vulnerability.

Affected Version(s)

PostgreSQL 18 < 18.7

PostgreSQL 17 < 17.12

PostgreSQL 16 < 16.16

References

CVSS V3.1

Score:
4.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

The PostgreSQL project thanks Anthropic OSS program for reporting this problem.
.