Skip to main content

PostgreSQL CVE-2026-6471

| EUVDEUVD-2026-57857 HIGH
Missing Authorization (CWE-862)
2026-08-13 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 GHSA-r26j-h78w-pjqm
7.2
CVSS 3.1 · Vendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
View

Attack ChainAIDerived

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

  1. Access
    Obtain REPLICATION-privileged credentials
  2. Delivery
    Connect to PostgreSQL over network
  3. Exploit
    Stage malicious shared library on server filesystem
  4. Execution
    Initiate logical decoding slot with malicious plugin path
  5. Persist
    Server process dlopen()s attacker-controlled library
  6. Impact
    Execute arbitrary code as postgres OS account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated PostgreSQL database connection where the connecting role has been explicitly granted the REPLICATION attribute (via CREATE ROLE ... REPLICATION or ALTER ROLE ... REPLICATION) - superuser accounts already have this implicitly, but the vulnerability is most relevant for non-superuser replication roles. Additionally, the attacker must be able to reference a malicious shared library file that is readable by the OS account under which the PostgreSQL server process runs (typically the postgres system user); this may require a separate file-write primitive or access to a writable path. Limiting factors: REPLICATION privilege is not granted by default and must be explicitly provisioned; the attacker must have network or local access to the PostgreSQL port (default 5432) permitted by pg_hba.conf; and a suitable shared library file path must be accessible to the server process. Deployments that grant REPLICATION only to dedicated, tightly controlled service accounts and restrict filesystem write access for the postgres OS user face meaningfully reduced practical risk.

Impact

The CVSS 7.2 score (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) reflects the high-privilege prerequisite (PR:H - REPLICATION role) that significantly constrains the attack surface compared to an unauthenticated vector. In practice, REPLICATION privilege is granted selectively for replication tooling (e.g., pglogical, Debezium, AWS DMS), meaning the realistic attacker population is limited to: compromised replication service accounts, malicious DBAs below superuser level, or application accounts that were over-provisioned. No EPSS data was provided, no KEV listing exists, and no POC has been identified - these signals collectively suggest no widespread opportunistic exploitation currently. The S:U scope metric in the provided vector may understate actual risk: dlopen-based code execution runs as the postgres OS account, which on many deployments has broad filesystem access and can pivot to the host OS, arguably warranting S:C. Security teams should treat this as a high-priority patch in any environment that grants REPLICATION to non-superusers or uses third-party CDC tooling. The 'Authentication Bypass' tag in the input is imprecise - this is an authorization bypass (CWE-862), not a bypass of authentication; the attacker IS authenticated.

Exploit ScenarioDerived

An attacker who has obtained credentials for a database account holding REPLICATION privilege - for example, a compromised CDC service account used by a Debezium pipeline - connects to the PostgreSQL server over the network. The attacker first stages a malicious shared library on the server filesystem via an available write vector (e.g., COPY TO, a writable NFS mount, or a pre-existing file-write vulnerability), then initiates a logical replication slot specifying the malicious library as the decoding plugin, causing the server process to dlopen() and execute the library as the postgres OS user. No public POC has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 13, 2026

Remote code execution in PostgreSQL logical decoding (versions before 18.5, 17.11, 16.15, 15.19, and 14.24) allows any database user holding REPLICATION privilege - a role explicitly below superuser - to load arbitrary shared libraries via dlopen by specifying a malicious logical decoding plugin name, executing arbitrary code as the OS account running the server. This is a missing authorization flaw (CWE-862): the REPLICATION privilege was not intended to grant the ability to load native code. No public exploit code or CISA KEV listing has been identified at time of analysis, though the high-impact CVSS 7.2 vector and RCE outcome make this a high-priority patching target for any deployment that grants REPLICATION to non-superusers.

RemediationAI

Upgrade to the fixed releases: PostgreSQL 18.5, 17.11, 16.15, 15.19, or 14.24, depending on the deployed major version branch. Fix versions are confirmed in the CVE description and should be available from the PostgreSQL Global Development Group at https://www.postgresql.org/support/security/CVE-2026-6471/. As an interim compensating control, audit and revoke REPLICATION privilege from any role that does not strictly require it for operational purposes - this eliminates the attack surface entirely until patching is complete. A secondary control is to restrict which shared library paths are accessible to the postgres OS account (e.g., via filesystem ACLs or dropping write access to temp directories), though this is difficult to enforce comprehensively and should not substitute for patching. Note that pg_hba.conf replication entries control which hosts may initiate replication connections, so tightening those rules reduces network-level exposure without removing REPLICATION privilege from legitimate roles.

Affected VersionsENISA

PostgreSQL 15 <15.19
PostgreSQL 18 <18.5
PostgreSQL 16 <16.15
PostgreSQL 17 <17.11
PostgreSQL 0 <14.24

Affected Packages

euvd postgresql fix: 14.24, 15.19, 16.15, 17.11, 18.5

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 logical decoding is a built-in replication and change-data-capture feature that exposes the write-ahead log (WAL) in an application-readable format. Decoding is performed by plugins - shared libraries (.so/.dll) loaded at runtime via dlopen(). Superuser privilege is ordinarily required to create replication slots and select decoding plugins, because plugin loading is functionally equivalent to arbitrary code execution at the OS level. CWE-862 (Missing Authorization) identifies the root cause: the server failed to enforce the superuser check when a REPLICATION-privileged (non-superuser) role chose the plugin path, allowing that role to instruct the server process to dlopen() any file readable by the postgres OS account. The affected CPE family covers all active PostgreSQL major versions (14-18) prior to their respective security patch releases.

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 (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007) PRIMARY 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.1 CRITICAL

S:C chosen over provided S:U because dlopen-based RCE as the postgres OS account inherently affects the host system beyond the database scope; all other metrics match the provided vector.

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
SUSE HIGH
Red Hat 7.2 HIGH

Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).

CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

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

Lifecycle Timeline

2
Patch available
Aug 13, 2026 - 14:02 EUVD
CVE Published
Aug 13, 2026 - 13:19 cve.org
HIGH 7.2

DescriptionCVE.org

Missing authorization in PostgreSQL logical decoding allows a non-superuser holding REPLICATION privilege to dlopen any file visible to the operating system account running the server, via the choice of logical decoding plugin. This in turn runs arbitrary code as that account. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.

Executive ViewAI

Why It Matters

PostgreSQL versions prior to 18.5, 17.11, 16.15, 15.19, and 14.24 contain a critical remote code execution vulnerability in logical decoding that allows database users with standard replication privileges to execute arbitrary code as the database server process. Although no active exploitation has been reported at time of analysis, this authorization flaw creates immediate risk for any organization granting replication rights to application or operational accounts. Organizations must execute urgent patching and privilege audits to eliminate the code execution pathway before exploitation becomes widespread.

Business Impact: High
Compensating Controls

Apply vendor patch by upgrading to PostgreSQL 18.5, 17.11, 16.15, 15.19, or 14.24 or later depending on your deployed branch. Pending patching: revoke REPLICATION privilege from non-superuser accounts; restrict database network access to trusted networks only; run PostgreSQL process with minimal OS-level privileges; and enable audit logging of logical decoding plugin initialization to detect exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
High
widely deployed open-source RDBMS across enterprise, cloud, and SaaS environments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC 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 HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

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