# CVE-2021-23222

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-03-02 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-23222, RHSA-2022:1891, UBUNTU-CVE-2021-23222, USN-5765-1, DEBIAN-CVE-2021-23222
- Record: https://cvemate.com/vulnerability/CVE-2021-23222 · JSON: https://cvemate.com/vulnerability/CVE-2021-23222/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.402%, percentile 73.461%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine postgresql (Alpine Linux): ≥ 9.6, \< 12.9-r0 \| ≥ 9.6, \< 13.5-r0 \| ≥ 12.0, \< 12.9-r0 \| ≥ 13.0, \< 13.5-r0
- alpine postgresql12 (Alpine Linux): \< 12.9-r0
- alpine postgresql13 (Alpine Linux): \< 13.5-r0
- alpine postgresql14 (Alpine Linux): \< 14.1-r0
- alpine postgresql15 (Alpine Linux): \< 14.1-r0
- debian postgresql-13 (Debian): \< 13.5-0+deb11u1
- ubuntu postgresql-10 (Ubuntu): \< 10.19-0ubuntu0.18.04.1
- ubuntu postgresql-12 (Ubuntu): \< 12.9-0ubuntu0.20.04.1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): \< 9.5.25-0ubuntu0.16.04.1+esm3
- postgresql postgresql: ≥ 9.6, \< 9.6.24 \| ≥ 10.0, \< 10.19 \| ≥ 11.0, \< 11.14 \| ≥ 12.0, \< 12.9 \| ≥ 13.0, \< 13.5 \| 14.0
- redhat libpq (Red Hat): \< 0:13.5-1.el8
- redhat libpq-debuginfo (Red Hat): \< 0:13.5-1.el8
- redhat libpq-debugsource (Red Hat): \< 0:13.5-1.el8
- redhat libpq-devel (Red Hat): \< 0:13.5-1.el8
- redhat libpq-devel-debuginfo (Red Hat): \< 0:13.5-1.el8

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2022675>
- <https://www.postgresql.org/support/security/CVE-2021-23222/>
- <https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=d83cdfdca9d918bbbd6bb209139b94c954da7228>
- <https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45>
- <https://security.gentoo.org/glsa/202211-04>
- <https://security.alpinelinux.org/vuln/CVE-2021-23222>
- <https://access.redhat.com/errata/RHSA-2022:1891>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.6_release_notes/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_1891.json>
- <https://access.redhat.com/security/cve/CVE-2021-23222>
- <https://www.cve.org/CVERecord?id=CVE-2021-23222>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23222>
- <https://ubuntu.com/security/CVE-2021-23222>
- <https://www.postgresql.org/about/news/postgresql-141-135-129-1114-1019-and-9624-released-2349/>
- <https://ubuntu.com/security/notices/USN-5145-1>
- <https://ubuntu.com/security/notices/USN-5765-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-23222>

---

Data as of 2026-12-05T06:22:04.435Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
