# 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…

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.40%, higher than 73% of CVEs (2026-12-01)
- Published: 2022-03-02T00:00:00.000Z
- Modified: 2026-09-08T08:47:41.544Z
- Also known as: BIT-POSTGRESQL-2021-23222
- Weaknesses: CWE-522
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- postgresql: Affects v9.6 to v14
- postgresql postgresql: from 9.6 before 9.6.24; from 10.0 before 10.19; from 11.0 before 11.14; from 12.0 before 12.9; from 13.0 before 13.5; 14.0
- postgresql (Bitnami): from 9.6.0 before 9.6.24; from 10.0.0 before 10.19.0; from 11.0.0 before 11.14.0; from 12.0.0 before 12.9.0; from 13.0.0 before 13.5.0; from 14.0.0 before 14.0.1

## Every score

- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2022675> (advisory, issue-tracking, third-party-advisory)
- <https://www.postgresql.org/support/security/CVE-2021-23222/> (advisory, release-notes, vendor-advisory)
- <https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=d83cdfdca9d918bbbd6bb209139b94c954da7228> (web)
- <https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45> (advisory, patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202211-04> (advisory, third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23222> (web)

## Sources

- CVE List: [CVE-2021-23222](https://www.cve.org/CVERecord?id=CVE-2021-23222), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-23222](https://nvd.nist.gov/vuln/detail/CVE-2021-23222), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2021-23222](https://osv.dev/vulnerability/BIT-POSTGRESQL-2021-23222), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-23222 · Whole record: https://cve.day/CVE-2021-23222.json · Rebuilt by cve.day 2026-11-25T22:58:07.099Z
