Skip to main content

PostgreSQL CVE-2026-6476

| EUVDEUVD-2026-30285 HIGH
SQL Injection (CWE-89)
2026-05-14 PostgreSQL GHSA-9crw-q654-rwgr
7.2
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Obtain pg_create_subscription credentials
  2. Delivery
    Craft SQL injection payload in subscription parameters
  3. Exploit
    Submit malicious subscription via PostgreSQL protocol
  4. Execution
    Wait for pg_createsubscriber invocation
  5. Persist
    Injected SQL executes as superuser
  6. Impact
    Establish persistent superuser access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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

Exploitation Conditions

Attacker must possess authenticated access with pg_create_subscription privilege (or higher role that includes this permission). This privilege is typically granted to replication administrators but not standard application users. The pg_createsubscriber utility must be subsequently invoked for the injected payload to execute; this could be triggered by legitimate administrative operations converting physical standbys to logical replicas, or potentially by the attacker if they can influence when the utility runs. Exploitation is limited to PostgreSQL major versions 17 and 18 specifically (minor versions 17.0-17.9 and 18.0-18.3); deployments running PostgreSQL 16 or earlier are inherently protected. Remote network access to the PostgreSQL server (AV:N) is required but no user interaction (UI:N) is necessary once the attacker has the required privilege level. The low attack complexity (AC:L) indicates no specialized conditions like race windows or cryptographic brute-forcing are needed.

Impact

Real-world risk is moderate and highly context-dependent. CVSS 7.2 (High) reflects the severe impact (full CIA compromise) but requires high privileges (PR:H), limiting the attacker pool. The network attack vector (AV:N) and low complexity (AC:L) indicate straightforward exploitation once the privilege prerequisite is met. No CISA KEV listing suggests this is not being actively exploited in the wild, and no public proof-of-concept was identified in available references. The SSVC decision framework would likely classify this as 'Attend' rather than 'Act' for most organizations: exploitation requires prior compromise of a privileged account (pg_create_subscription), limiting automatable mass exploitation, though technical impact is total within the database context. Primary risk scenarios are multi-tenant database hosting environments, managed PostgreSQL services where subscription permissions are delegated to customers, and organizations with separation-of-duties policies that intentionally restrict superuser access. For single-tenant deployments where administrators already have superuser access, this represents minimal additional risk. The time-delayed nature (attack triggers only when pg_createsubscriber next runs) provides detection opportunities but also complicates incident response timelines.

Exploit ScenarioDerived

An attacker compromises credentials for a PostgreSQL role with pg_create_subscription privilege, perhaps through phishing a replication administrator or exploiting a separate application vulnerability. The attacker crafts a malicious subscription definition containing SQL injection payloads designed to create backdoor superuser accounts or exfiltrate sensitive data. This payload is submitted through legitimate subscription management interfaces. When a database administrator or automated process next invokes pg_createsubscriber for legitimate standby conversion operations, the injected SQL executes with superuser privileges, granting the attacker full database control including access to all schemas, ability to modify data, and potential operating system command execution via PostgreSQL extensions like pg_read_file or COPY TO PROGRAM.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

SQL injection in PostgreSQL's pg_createsubscriber utility escalates privileges from pg_create_subscription to superuser, enabling arbitrary SQL execution. Affects PostgreSQL versions 17.0-17.9 and 18.0-18.3; exploitation requires high-privilege access (pg_create_subscription rights) but occurs remotely without additional complexity. Attack triggers when pg_createsubscriber next executes. Fixed in PostgreSQL 18.4 and 17.10. No CISA KEV listing or public exploit identified at time of analysis, but the technical simplicity (AC:L) and privilege escalation nature present moderate risk for multi-tenant or hosted PostgreSQL environments where subscription management permissions are delegated.

RemediationAI

Upgrade to PostgreSQL 18.4 or later for version 18 users, or PostgreSQL 17.10 or later for version 17 users. These releases contain patches addressing the SQL injection vulnerability in pg_createsubscriber. Download patched versions from https://www.postgresql.org/download/ and follow standard PostgreSQL upgrade procedures for your deployment model. For organizations unable to immediately patch, implement compensating controls: (1) Audit and restrict pg_create_subscription privilege to only fully trusted administrators who already possess superuser-equivalent access, eliminating the privilege escalation boundary; (2) Monitor pg_createsubscriber invocations through PostgreSQL query logs (log_statement='all') and audit trails to detect anomalous SQL patterns; (3) If pg_createsubscriber is not operationally required, remove execute permissions on the utility binary as a temporary measure (note this breaks standby-to-logical-replica conversion workflows). Complete advisory and patching guidance available at https://www.postgresql.org/support/security/CVE-2026-6476/. Compensating controls reduce but do not eliminate risk; prioritize patching for production systems.

Affected VersionsENISA

PostgreSQL 17 <17.10
PostgreSQL 18 <18.4

Affected Packages

euvd postgresql fix: 17.10, 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 pg_createsubscriber is a utility introduced in version 17 that converts a physical standby server into a logical replica. The tool manages logical replication subscriptions, which require pg_create_subscription privilege. This vulnerability (CWE-89: SQL Injection) stems from insufficient input sanitization when processing subscription-related parameters. An attacker with pg_create_subscription rights can inject malicious SQL payloads that execute with superuser privileges during pg_createsubscriber's next invocation. The privilege boundary between subscription creation (typically granted to replication administrators) and superuser (full database control) is a critical security boundary in PostgreSQL's role-based access model. The vulnerability exists only in the pg_createsubscriber codepath introduced in major version 17, explaining why earlier versions are unaffected.

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 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 7.2 HIGH

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

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
May 14, 2026 - 15:01 EUVD
CVE Published
May 14, 2026 - 13:00 nvd
HIGH 7.2

DescriptionCVE.org

SQL injection in PostgreSQL pg_createsubscriber allows an attacker with pg_create_subscription rights to execute arbitrary SQL as a superuser. The attack takes effect when pg_createsubscriber next runs. Within major versions 17 and 18, minor versions before PostgreSQL 18.4 and 17.10 are affected. Versions before PostgreSQL 17 are unaffected.

Executive ViewAI

Why It Matters

CVE-2026-6476 is a SQL injection vulnerability in PostgreSQL's pg_createsubscriber utility that allows users with subscription creation privileges to escalate to superuser and execute arbitrary SQL commands. Organizations operating PostgreSQL 17.0-17.9 or 18.0-18.3 should prioritize patching, particularly those with delegated database administration or multi-tenant architectures where subscription management is assigned to non-superuser accounts.

Business Impact: High
Compensating Controls

Implement strict role-based access control by revoking pg_create_subscription privileges from non-superuser accounts until patching is complete; enable PostgreSQL audit logging (log_statement=all or pgaudit extension) to detect malicious SQL execution attempts; isolate PostgreSQL instances in network segments where subscription management is least needed; apply database activity monitoring to flag privilege escalation patterns.

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
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

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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: High
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