Skip to main content

PostgreSQL EUVDEUVD-2026-30287

| CVE-2026-6575 MEDIUM
Buffer Over-read (CWE-126)
2026-05-14 PostgreSQL GHSA-f8xc-gmqx-v9fh
4.3
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain database credentials with MAINTAIN privilege
  2. Delivery
    Connect to PostgreSQL 18.0-18.3 instance
  3. Exploit
    Create or modify table statistics with mismatched array lengths
  4. Install
    Execute ANALYZE or VACUUM ANALYZE
  5. C2
    Trigger pg_restore_attribute_stats() to read past array boundary
  6. Execute
    Extract leaked heap memory contents
  7. Impact
    Infer sensitive values

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer over-read prevention
Exploitation Conditions

The attacker must possess authenticated access to the PostgreSQL database with explicit table maintenance privileges (MAINTAIN permission in PostgreSQL 18). This is NOT a default privilege for ordinary database users. The vulnerability is triggered when pg_restore_attribute_stats() is called with arrays of unmatched lengths during query planning; this occurs when the attacker explicitly uses the ANALYZE command, VACUUM ANALYZE, or other maintenance operations on tables with crafted or corrupted statistical metadata. Default PostgreSQL configurations do not automatically trigger this condition unless the attacker or an insider has already modified table statistics. The vulnerability does not affect installations where all non-administrative users are restricted to SELECT, INSERT, UPDATE, DELETE without maintenance privileges.

Impact

This vulnerability presents a LOW-TO-MODERATE real-world risk despite a CVSS score of 4.3. The attack vector is network-accessible (AV:N) with low complexity (AC:L), making it reachable from remote systems, but the impact is heavily constrained by mandatory authentication requirements (PR:L requires login as a table maintainer). The attack yields only confidentiality impact (C:L); integrity and availability are unaffected (I:N/A:N). The CVSS score of 4.3 appropriately reflects these constraints. KEV status is unknown from provided data. The vulnerability requires a legitimate database account with table maintenance privileges, which eliminates opportunistic attacks but remains relevant in scenarios of insider threats or compromised credentials. Organizations with PostgreSQL 18.0-18.3 deployments accessible to untrusted users should prioritize patching, but this is not a critical remote exploitation vector for standard deployments where database access is restricted to application accounts without maintenance privileges.

Exploit ScenarioDerived

An authenticated database user with table maintenance privileges connects to a PostgreSQL 18.0-18.3 instance and crafts a query or uses ANALYZE/VACUUM commands to trigger pg_restore_attribute_stats() with malformed statistical arrays of mismatched lengths. The function reads past the intended array boundary, exposing heap memory adjacent to the array structure. The attacker repeats this process to extract sensitive data such as encryption keys, other users' query strings, or application secrets resident in process memory, culminating in information disclosure.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 14, 2026

Buffer over-read in PostgreSQL 18.0 through 18.3 allows authenticated table maintainers to infer sensitive memory contents by exploiting mismatched array lengths in the pg_restore_attribute_stats() function during query planning. The vulnerability requires authenticated database access and table maintenance privileges but enables information disclosure without modifying data or causing service disruption.

RemediationAI

Upgrade to PostgreSQL 18.4 or later, which includes the fix for the buffer over-read vulnerability. For PostgreSQL 18.0-18.3 deployments, this is the recommended and available patch. Until patching is feasible, apply compensating controls by restricting table maintenance privileges (MAINTAIN permission in PostgreSQL 18) to trusted administrators only. If database access must be exposed to less-trusted users (developers, analysts), grant only SELECT and limited DML privileges, explicitly denying MAINTAIN. Review and audit which database accounts have table maintenance privileges using the PostgreSQL system catalogs. Monitor pg_restore_attribute_stats() function calls and query plans in logs if detailed query logging is enabled. Note that restricting privileges may limit legitimate maintenance tasks, so coordinate with database administrators to ensure operational continuity.

Affected VersionsENISA

PostgreSQL 18 <18.4

Affected Packages

euvd postgresql fix: 18.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PostgreSQL's query planner uses the pg_restore_attribute_stats() function to read statistical metadata stored in array structures. The vulnerability exists in CWE-126 (buffer over-read), where the function fails to validate that array values have matching lengths before accessing array elements. When arrays of unmatched lengths are provided, the query planner reads past the end of one array into adjacent memory, exposing uninitialized or sensitive data from the PostgreSQL process heap. This affects PostgreSQL 18.x only (versions before 18 are unaffected), indicating a regression or new feature vulnerability introduced in the PostgreSQL 18 release cycle.

Know when PostgreSQL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PostgreSQL) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
SUSE MEDIUM
Red Hat 4.3 MEDIUM

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
May 14, 2026 - 15:01 EUVD
CVE Published
May 14, 2026 - 13:00 nvd
MEDIUM 4.3

DescriptionCVE.org

Buffer over-read in PostgreSQL function pg_restore_attribute_stats() accepts array values of unmatched length, which causes query planning to read past end of one array. This allows a table maintainer to infer memory values past that array end. Within major version 18, minor versions before PostgreSQL 18.4 are affected. Versions before PostgreSQL 18 are unaffected.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise Module for Basesystem 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy