CVE-2026-6638: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in PostgreSQL
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 requires user interaction (UI:R) and low privileges (PR:L), and the vulnerability has not been observed exploited in the wild. No official patch or remediation guidance is currently provided by the vendor.
AI Analysis
Technical Summary
This vulnerability involves improper neutralization of special elements in an SQL command within PostgreSQL's logical replication feature. When a subscriber executes ALTER SUBSCRIPTION ... REFRESH PUBLICATION, it can lead to SQL injection, allowing execution of 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 does not affect versions before 16. The CVSS 3.1 base score is 3.7, indicating low severity, with network attack vector, high attack complexity, low privileges required, and user interaction needed. No known exploits have been reported.
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 vulnerability does not affect availability. Given the low CVSS score and required conditions, the impact is considered low. There are no known exploits 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 consider upgrading to PostgreSQL versions 16.14, 17.10, or 18.4 or later once available. Additionally, restrict permissions to create subscriber tables to trusted users only to reduce risk.
CVE-2026-6638: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in 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 requires user interaction (UI:R) and low privileges (PR:L), and the vulnerability has not been observed exploited in the wild. No official patch or remediation guidance is currently provided by the vendor.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves improper neutralization of special elements in an SQL command within PostgreSQL's logical replication feature. When a subscriber executes ALTER SUBSCRIPTION ... REFRESH PUBLICATION, it can lead to SQL injection, allowing execution of 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 does not affect versions before 16. The CVSS 3.1 base score is 3.7, indicating low severity, with network attack vector, high attack complexity, low privileges required, and user interaction needed. No known exploits have been reported.
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 vulnerability does not affect availability. Given the low CVSS score and required conditions, the impact is considered low. There are no known exploits 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 consider upgrading to PostgreSQL versions 16.14, 17.10, or 18.4 or later once available. Additionally, restrict permissions to create subscriber tables to trusted users only to reduce risk.
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/14/2026, 1:52:38 PM
Last updated: 5/14/2026, 4:04:07 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.