Skip to main content

PostgreSQL EUVDEUVD-2026-30290

| CVE-2026-6638 HIGH
SQL Injection (CWE-89)
2026-05-14 PostgreSQL GHSA-3835-x2rj-c3qj
8.8
CVSS 3.1 · NVD
View

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.

Impact

Signals point to a serious-but-conditional issue rather than a mass-exploitation emergency. CVSS 3.1 is 8.8 (High) with AV:N/AC:L/PR:L/UI:N and full C:H/I:H/A:H, reflecting that a low-privileged authenticated actor can reach arbitrary SQL execution. However, the EPSS probability is very low (0.02%, 7th percentile), CISA KEV does not list it, no public exploit is referenced, and SSVC records Exploitation:none, Automatable:no, Technical Impact:partial. The vuln.today decision label is 'this_week', not act_now/emergency, consistent with a high-impact flaw that is not under active exploitation. The AV:N rating is technically correct (the subscriber connects over the network), but exploitation is gated behind being a 'subscriber table creator' on a system that actively uses logical replication - a meaningful real-world constraint not captured by the raw vector. Note a tension: CVSS treats this as S:U (unchanged scope), yet the description says the injected SQL runs with the subscription's publication-side credentials, which effectively crosses from the subscriber's trust context into the publisher's - defenders should treat the blast radius as the publisher role's privileges, verify against the PostgreSQL advisory. Bottom line: prioritize patching where logical replication is in use, but this is not a drop-everything internet-wide threat.

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

AnalysisAIv2 – Nov 11, 2026

SQL injection in PostgreSQL logical replication lets a role that can create a table on the subscriber side run arbitrary SQL with the subscription's publisher-side credentials, surfacing at the next ALTER SUBSCRIPTION ... REFRESH PUBLICATION. Only logical-replication deployments on major versions 16, 17 and 18 are in scope: 16.x before 16.14, 17.x before 17.10 and 18.x before 18.4, while releases before 16 are unaffected. The flaw is rated CVSS 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), so the attacker needs a low-privileged authenticated account rather than anonymity; EPSS is 0.02% (7th percentile), SSVC records Exploitation: none and Automatable: no, and no public exploit has been identified at time of analysis, so this is a serious but conditional issue rather than a mass-exploitation emergency. Vendor patches exist and the priority label is this_week.

Earlier versions of this analysis (1)
v1 May 14, 2026 - 14:03 CVSS 3.7

SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION REFRESH PUBLICATION allows authenticated local or network users with table creation privileges to execute arbitrary SQL queries with the publication subscriber's credentials. The attack is deferred until the next REFRESH PUBLICATION command is executed, requiring user interaction or scheduled maintenance. PostgreSQL 16.x, 17.x, and 18.x versions prior to 16.14, 17.10, and 18.4 respectively are vulnerable; earlier versions are unaffected. No public exploit code or active exploitation has been identified.

RemediationAI

Vendor-released patch: upgrade to PostgreSQL 18.4, 17.10 or 16.14 - each branch has its own fixed release, so match the minor version to the major you run; servers older than 16 need no action for this CVE. Distribution packages trail upstream, so Ubuntu deployments should apply USN-8294-1 (https://ubuntu.com/security/notices/USN-8294-1) and confirm the installed package version afterwards; the upstream advisory is at https://www.postgresql.org/support/security/CVE-2026-6638/. Because the injection becomes live only at the next REFRESH PUBLICATION, patched and unpatched nodes should be treated as contaminated once an untrusted role could create replication tables, and subscriptions should not be refreshed against a publisher until the subscriber binary is upgraded. Until patching is possible, narrow the attacker set described in the advisory by restricting which roles may create tables on nodes participating in logical replication, and defer REFRESH PUBLICATION on subscriptions whose table set may have been touched by such a role - the trade-off is that newly added published tables will not be replicated until the refresh is finally run, leaving the subscription's table list stale. No confirmed public exploit code exists at time of analysis, so there is no evidence that exposure is already being probed.

Affected VersionsENISA

PostgreSQL 18 <18.4
PostgreSQL 16 <16.14
PostgreSQL 17 <17.10

Affected Packages

euvd postgresql fix: 16.14, 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 logical replication works by having a subscriber connect to a publisher with stored connection credentials and pull the table list of a publication. ALTER SUBSCRIPTION ... REFRESH PUBLICATION re-reads that publication membership and regenerates the subscriber-side metadata and SQL statements needed to track those relations; because the generated statements are built from object names obtained over the replication connection without sufficient escaping, the operation is a CWE-89 SQL injection sink. The attacker set described by the vendor is a 'subscriber table creator' - a role able to create a table involved in the subscription - and the injected SQL executes with the credentials the subscription uses against the publisher, which is why confidentiality and integrity are both rated High. The impact is time-delayed: nothing happens at table creation, only when REFRESH PUBLICATION is next run, which makes the poisoned state hard to attribute. CPE data records the affected platform generically as postgresql; the EUVD record pins the affected ranges to 18 < 18.4, 17 < 17.10 and 16 < 16.14, with all pre-16 branches explicitly out of scope because they lack the affected code path. The trigger mechanics beyond the REFRESH PUBLICATION step are not described in the available sources.

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

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 3.7 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

5
Analysis Updated
Nov 11, 2026 - 20:31 vuln.today
v2 - CVSS changed
Severity Changed
Nov 11, 2026 - 20:22 NVD
LOW HIGH
CVSS changed
Nov 11, 2026 - 20:22 NVD
3.7 (LOW) 8.8 (HIGH)
Patch available
May 14, 2026 - 15:01 EUVD
CVE Published
May 14, 2026 - 13:00 nvd
LOW 3.7

DescriptionNVD

SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION ... REFRESH PUBLICATION allows a subscriber table creator to execute arbitrary SQL with the subscription's publication-side credentials. The attack takes effect at the next REFRESH PUBLICATION. Within major versions 16, 17, and 18, minor versions before PostgreSQL 18.4, 17.10, and 16.14 are affected. Versions before PostgreSQL 16 are unaffected.

Executive ViewAI

Why It Matters

PostgreSQL logical replication contains a high-severity SQL injection flaw (CVE-2026-6638) that enables a low-privileged authenticated user to execute arbitrary SQL with the subscription's publisher-side credentials. Affected are organizations running logical replication on PostgreSQL major versions 16, 17, or 18 at specific patch levels, where a role with table creation rights could compromise publisher databases. While no active exploitation has been observed, the potential for unauthorized data access and modification makes this a priority for security management.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
6 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.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
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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

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