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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
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
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
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
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-30290
GHSA-3835-x2rj-c3qj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB