pgx icon indicating copy to clipboard operation
pgx copied to clipboard

Missing CVE: require_auth auth downgrade fix (CWE-306) — commit 1a976f7

Open canolgun opened this issue 5 months ago • 1 comments

Retrospective CVE Request

Commit 1a976f7 (pgconn: add require_auth to restrict accepted server auth methods) fixed a CWE-306 authentication downgrade vulnerability:

  • Before the fix: The auth dispatch loop accepted any Authentication* message from the server, including cleartext password
  • Impact: Malicious PostgreSQL server → downgrade auth → steal credentials
  • Fixed: By adding require_auth config option restricting accepted auth methods

This commit has no CVE, no advisory, no changelog mention. Requesting retrospective CVE assignment.

Discovered via bounty-hunter automated gitdiff analysis.

CC: @jackc

canolgun avatar Jun 12 '26 10:06 canolgun

Duplicate of #2578

canolgun avatar Jun 12 '26 11:06 canolgun