↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

CVE-2021-23222

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. If more preconditions hold, the attacker can exfiltrate the client's password or other confidential data that might be transmitted early in a session. The attacker must have a way to trick the client's intended server into making the confidential data accessible to the attacker. A known implementation having that property is a PostgreSQL configuration vulnerable to CVE-2021-23214 . As with any exploitation of CVE-2021-23214 , the server must be using trust authentication with a clientcert requirement or using cert authentication. To disclose a password, the client must be in possession of a password, which is atypical when using an authentication configuration vulnerable to CVE-2021-23214 . The attacker must have some other way to access the server to retrieve the exfiltrated data (a valid, unprivileged login account would be sufficient). The PostgreSQL project thanks Jacob Champion for reporting this problem.

Version Information

Affected branchIntroducedFixed InFix Published
10—10.192021-11-11
11—11.142021-11-11
12—12.92021-11-11
13—13.52021-11-11
14—14.12021-11-11
9.6—9.6.242021-11-11

CVSS 3.0

Overall Score3.7
Componentclient
VectorAV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

First published: 2021-11-11

Historical source observations

These dated records preserve the original source claims separately from the reviewed fix list.

center · 2026-10-03 12:08:35.169032+08

  • PostgreSQL 14 · Original minor coordinate: 1

pgweb · 2026-10-03 12:08:55.967155+08

  • PostgreSQL 14 · Original minor coordinate: 1

Original security advisory · JSON · All advisories