CVE Database›Document archive›CVE-2026-6575

CVE-2026-6575

postgresql: PostgreSQL: Information disclosure via buffer over-read in pg_restore_attribute_stats()

Loading…

Severity

Moderate

Red Hat Product Security

4.3

CVSS 3.1

Review impact separately from score.

Published · May 14, 2026

Updated · July 17, 2026

Description

A flaw was found in PostgreSQL. This buffer over-read vulnerability in the pg_restore_attribute_stats() function allows a table maintainer to infer memory values. By providing array values of unmatched length, a malicious table maintainer can cause query planning to read past the end of an array, leading to information disclosure.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this information disclosure vulnerability, restrict network access to the PostgreSQL server to only trusted clients. Configure firewall rules to limit inbound connections to the PostgreSQL port (default 5432) from authorized hosts only. For example, using firewall-cmd on Red Hat Enterprise Linux:

sudo firewall-cmd --permanent --add-source=<TRUSTED_IP_ADDRESS>/32 --zone=public sudo firewall-cmd --permanent --add-port=5432/tcp --zone=public sudo firewall-cmd --reload

Alternatively, configure PostgreSQL to listen only on the localhost interface by setting listen_addresses = 'localhost' in postgresql.conf and restarting the PostgreSQL service.

sudo systemctl restart postgresql

This reduces the attack surface by preventing unauthorized network access to the database. Note that restarting the PostgreSQL service will temporarily interrupt database operations.

CVSS / CWE

CVSS 3.1 · 4.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

CWE-805 · Buffer Access with Incorrect Length Value