Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 93%

CVE-2026-6638: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in PostgreSQL

0
Low
VulnerabilityCVE-2026-6638cvecve-2026-6638
Published: Thu May 14 2026 (05/14/2026, 13:00:15 UTC)
Source: CVE Database V5
Product: PostgreSQL

Description

CVE-2026-6638 is a low-severity SQL injection vulnerability in PostgreSQL affecting logical replication commands. Specifically, the ALTER SUBSCRIPTION ... REFRESH PUBLICATION command allows a subscriber table creator to execute arbitrary SQL using the publication-side credentials. This vulnerability impacts PostgreSQL major versions 16, 17, and 18, but only in minor versions before 16.14, 17.10, and 18.4. Versions prior to 16 are not affected. The attack executes at the next REFRESH PUBLICATION operation. No known exploits are reported in the wild, and no official patch or remediation level has been provided yet.

CVSS v3.1

Score 3.7low

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N

Affected software

Affected versions
=18=17=16

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/21/2026, 15:48:44 UTC

Technical Analysis

This vulnerability involves improper neutralization of special elements in an SQL command within PostgreSQL's logical replication feature. A subscriber table creator can exploit the ALTER SUBSCRIPTION ... REFRESH PUBLICATION command to run arbitrary SQL commands with the publication-side credentials. The issue affects PostgreSQL versions 16, 17, and 18, specifically minor versions before 16.14, 17.10, and 18.4. The vulnerability is triggered during the REFRESH PUBLICATION operation. It has a CVSS 3.1 base score of 3.7, indicating low severity, with network attack vector, high attack complexity, low privileges required, and user interaction needed. No official fix or patch information is currently available.

Potential Impact

Successful exploitation allows a subscriber table creator to execute arbitrary SQL commands with the privileges of the publication-side, potentially leading to limited confidentiality and integrity impacts. The CVSS score of 3.7 reflects low severity, indicating limited impact. There are no reports of exploitation in the wild.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution with subscription table creators and the use of REFRESH PUBLICATION commands. Monitor PostgreSQL vendor communications for updates on patches or mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PostgreSQL
Date Reserved
2026-04-19T19:58:21.650Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a05cfeaec166c07b0e13e2a

Added to database: 5/14/2026, 1:36:42 PM

Last enriched: 5/21/2026, 3:48:44 PM

Last updated: 6/15/2026, 2:05:54 PM

Views: 69

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses