CVE Explorer
CVE-2026-6638
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"PostgreSQL","vendor":"n/a","versions":[{"lessThan":"18.4","status":"affected","version":"18","versionType":"rpm"},{"lessThan":"17.10","status":"affected","version":"17","versionType":"rpm"},{"lessThan":"16.14","status":"affected","version":"16","versionType":"rpm"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:c69034cb615be4fafe8b88e5381408751a808bebef2b6c5547f599c00f3c57f9 · sha256:3f226870e5433348… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"baseScore":3.7,"baseSeverity":"LOW","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:c69034cb615be4fafe8b88e5381408751a808bebef2b6c5547f599c00f3c57f9 · sha256:3f226870e5433348… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-89","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c69034cb615be4fafe8b88e5381408751a808bebef2b6c5547f599c00f3c57f9 · sha256:3f226870e5433348… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"url":"https://www.postgresql.org/support/security/CVE-2026-6638/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c69034cb615be4fafe8b88e5381408751a808bebef2b6c5547f599c00f3c57f9 · sha256:3f226870e5433348… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.