---
id: "CVE-2026-116321"
page: "https://infrastack.ai/live/CVE-2026-116321"
kind: "vulnerability"
aliases: ["CVE-2026-116321"]
title: "PostgreSQL: array element assignment can leak server memory to database users"
severity: "medium"
cvss: 4.3
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["managed-database", "postgresql", "runtime", "self-hosted"]
not_affected_if: ["no-untrusted-db-users", "patched-version"]
published_at: "2026-11-12T15:17:40+00:00"
first_seen_at: "2026-11-12T15:41:54+00:00"
updated_at: "2026-11-12T15:44:02+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116321", "first_seen_at": "2026-11-12T15:41:54+00:00"}]
exploit_sources: []
---

# PostgreSQL: array element assignment can leak server memory to database users

Link for people: https://infrastack.ai/live/CVE-2026-116321 (this .md is for agents)

PostgreSQL does not null-terminate a fixed-length name value after array element assignment, so a database user can make code read past the value. An attacker with database access can disclose server memory.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `SELECT version();` in psql and compare against the fixed releases below.
- Check whether the server runs a PostgreSQL version before `18.7`, `17.12`, `16.16`, `15.20`, or `14.25`.

## Fix

- PostgreSQL `18.7`
- PostgreSQL `17.12`
- PostgreSQL `16.16`
- PostgreSQL `15.20`
- PostgreSQL `14.25`

## Timeline

- 2026-11-12T15:41:54+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116321

## From the sources

Improper null termination in PostgreSQL array element assignment allows a database user to disclose server memory, via changing the final byte of a fixed-length name value to a nonzero byte and passing it to code that treats the value as a C string.  Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
