When you press Ctrl-C in psql to cancel a running Postgres query, the CancelRequest is sent as a new, separate TCP connection using a special protocol magic number. Critically, psql always sends this request unencrypted — even when the original connection uses strict TLS settings. This exposes a Denial-of-Service vulnerability:

7m read timeFrom neon.com
Post cover image
Table of contents
How CancelRequest worksHello, Denial-of-Service?No TLS = SNI is MIAWrapping up

Sort: