A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification and encryption.
https://www.postgresql.org/support/security/CVE-2021-23222/
https://security.gentoo.org/glsa/202211-04
https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45