CVE-2026-6638

Published: May 18, 2026Last modified: May 19, 2026

Description

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.

Severity score breakdown

ParameterValue
Base score8.8
Attack VectorNETWORK
Attack complexityLOW
Privileges requiredLOW
User interactionNONE
ScopeUNCHANGED
ConfidentialityHIGH
Integrity impactHIGH
Availability impactHIGH
VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Notes

https://www.postgresql.org/about/news/postgresql-184-1710-1614-1518-and-1423-released-3297/

Status

ProductReleasePackageStatus
Alpaquita Linux23 LTSpostgresql15Not affected (15.17-r0)
25 LTSpostgresql17Fixed (17.10-r0)
Streampostgresql18Fixed (18.4-r0)

References

ON THIS PAGE