{"id":"CVE-2021-23222","year":2021,"sequence":23222,"component":"client","score":3.7,"cvss_version":"3.0","vector":"AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","first_published":"2021-11-11","source_url":"https://www.postgresql.org/support/security/CVE-2021-23222/","facts":{"affected":{"10":"10","11":"11","12":"12","13":"13","14":"14","9.6":"9.6"},"component":"client","cvss_version":"3.0","description_en":"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.\n\nIf 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).\n\nThe PostgreSQL project thanks Jacob Champion for reporting this problem.","first_published":"2021-11-11","fixed":{"10":"10.19","11":"11.14","12":"12.9","13":"13.5","14":"14.1","9.6":"9.6.24"},"id":"CVE-2021-23222","introduced":{},"published":{"10":"2021-11-11","11":"2021-11-11","12":"2021-11-11","13":"2021-11-11","14":"2021-11-11","9.6":"2021-11-11"},"score":3.7,"title":"libpq processes unencrypted bytes from man-in-the-middle","url":"https://www.postgresql.org/support/security/CVE-2021-23222/","vector":"AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"},"reviewed_hash":"6a65a7884245936f6adaef8709d290d460e999dfce1ad78734fa7c9a324ed325","source_hash":"965b9e2323feab543f3cbeb74c418c3a5b43cbefc6594d2862ff0d24dcf8e6a2","text":{"locale":"en","title":"libpq processes unencrypted bytes from man-in-the-middle","description":"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.\n\nIf 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).\n\nThe PostgreSQL project thanks Jacob Champion for reporting this problem.","details":null,"format":"plain","provenance":{"fetched_at":"2026-09-26T10:56:06+00:00","path":"compare/security.json","root":"source-data","sha256":"6a65a7884245936f6adaef8709d290d460e999dfce1ad78734fa7c9a324ed325","source_archive_sha256":"8d8ad63581e1d27b3a0f995ded3feb81c265e38b2ac652eb22f022f52c2240ec","source_revision":"004bc292ee31c11f9a41ab007e9d8116bce29a71","source_url":"https://www.postgresql.org/support/security/"},"text_hash":"9256248d5ca6fc82eec80d3dec03298dcce11f39e93a189afc3a9d8cc6b13d73"},"locales":["en","zh-Hans"],"fixes":[{"major":"10","fixed_version":"10.19","introduced":null,"published_date":"2021-11-11","facts":{"fixed":"10.19","introduced":null,"published":"2021-11-11"}},{"major":"11","fixed_version":"11.14","introduced":null,"published_date":"2021-11-11","facts":{"fixed":"11.14","introduced":null,"published":"2021-11-11"}},{"major":"12","fixed_version":"12.9","introduced":null,"published_date":"2021-11-11","facts":{"fixed":"12.9","introduced":null,"published":"2021-11-11"}},{"major":"13","fixed_version":"13.5","introduced":null,"published_date":"2021-11-11","facts":{"fixed":"13.5","introduced":null,"published":"2021-11-11"}},{"major":"14","fixed_version":"14.1","introduced":null,"published_date":"2021-11-11","facts":{"fixed":"14.1","introduced":null,"published":"2021-11-11"}},{"major":"9.6","fixed_version":"9.6.24","introduced":null,"published_date":"2021-11-11","facts":{"fixed":"9.6.24","introduced":null,"published":"2021-11-11"}}],"legacy":[{"source":"center","source_id":30,"observed_at":"2026-10-03 12:08:35.169032+08","raw":{"id":30,"cve":"2021-23222","public":true,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","details":null,"component":"client","cvenumber":202123222,"description":"libpq 会处理中间人发送的未加密字节","detailslink":"https://access.redhat.com/security/cve/CVE-2021-23222","legacyscore":"","newspost_id":null},"fixes":[{"source_id":97,"source_version_id":27,"major":"14","fixed_minor":1,"raw":{"id":97,"patch_id":30,"version_id":27,"fixed_minor":1},"version_raw":{"id":27,"tree":14.0,"current":false,"docsgit":"","eoldate":"2026-11-12","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T08:10:47.078613+08:00","latestminor":24,"firstreldate":"2021-09-30"}}]},{"source":"pgweb","source_id":30,"observed_at":"2026-10-03 12:08:55.967155+08","raw":{"id":30,"cve":"2021-23222","public":true,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","details":null,"component":"client","cvenumber":202123222,"description":"libpq 会处理中间人发送的未加密字节","detailslink":"https://access.redhat.com/security/cve/CVE-2021-23222","legacyscore":"","newspost_id":null},"fixes":[{"source_id":97,"source_version_id":27,"major":"14","fixed_minor":1,"raw":{"id":97,"patch_id":30,"version_id":27,"fixed_minor":1},"version_raw":{"id":27,"tree":14.0,"current":false,"docsgit":"","eoldate":"2026-11-12","reldate":"2026-08-13","testing":0,"supported":true,"docsloaded":"2026-09-27T00:10:45.258078+08:00","latestminor":24,"firstreldate":"2021-09-30"}}]}]}
