pgx icon indicating copy to clipboard operation
pgx copied to clipboard

Missing CVE: CancelRequest TLS leak — commit encrypts CancelRequest when primary connection uses TLS

Open canolgun opened this issue 5 months ago • 1 comments

Retrospective CVE Request

The CancelRequest mechanism in pgconn previously sent cancellation requests over unencrypted connections even when the primary connection used TLS:

  • Before: CancelRequest connections were not encrypted regardless of primary connection TLS
  • Impact: Information leak — an observer can see which queries are being cancelled, revealing query patterns
  • CWE: CWE-20 / CWE-319 (cleartext transmission)

Found via bounty-hunter gitdiff analysis of silent security fixes.

CC: @jackc

canolgun avatar Jun 12 '26 10:06 canolgun

Duplicate of #2578

canolgun avatar Jun 12 '26 11:06 canolgun