# CVE-2021-23214

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-03-04 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-23214, RHSA-2022:1830, UBUNTU-CVE-2021-23214, DEBIAN-CVE-2021-23214
- Record: https://cvemate.com/vulnerability/CVE-2021-23214 · JSON: https://cvemate.com/vulnerability/CVE-2021-23214/json

## Description

```text
When the server is configured to use trust authentication with a clientcert requirement or to use cert authentication, a man-in-the-middle attacker can inject arbitrary SQL queries when a connection is first established, despite the use of SSL certificate verification and encryption.
```

## Signals

- CVSS: 8.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.901%, percentile 80.401%, 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 (first 20 of 41)

- alpine postgresql (Alpine Linux): ≥ 10.0, \< 12.9-r0 \| ≥ 10.0, \< 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+esm1
- fedoraproject fedora: 34 \| 35
- postgresql postgresql: \< 9.6.24 \| ≥ 10.0, \< 10.19 \| ≥ 11.0, \< 11.14 \| ≥ 12.0, \< 12.9 \| ≥ 13.0, \< 13.5 \| 14.0
- redhat enterprise\_linux: 8.0
- redhat enterprise\_linux\_for\_ibm\_z\_systems: 8.0
- redhat enterprise\_linux\_for\_power\_little\_endian: 8.0
- redhat software\_collections: 1.0
- redhat postgresql (Red Hat): \< 0:10.19-1.module+el8.6.0+13642+78853f5a
- redhat postgresql-contrib (Red Hat): \< 0:10.19-1.module+el8.6.0+13642+78853f5a
- redhat postgresql-contrib-debuginfo (Red Hat): \< 0:10.19-1.module+el8.6.0+13642+78853f5a
- redhat postgresql-debuginfo (Red Hat): \< 0:10.19-1.module+el8.6.0+13642+78853f5a

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2022666>
- <https://www.postgresql.org/support/security/CVE-2021-23214/>
- <https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951>
- <https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951>
- <https://security.gentoo.org/glsa/202211-04>
- <https://security.alpinelinux.org/vuln/CVE-2021-23214>
- <https://access.redhat.com/errata/RHSA-2022:1830>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.6_release_notes/>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1992263>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2024568>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_1830.json>
- <https://access.redhat.com/security/cve/CVE-2021-23214>
- <https://www.cve.org/CVERecord?id=CVE-2021-23214>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23214>
- <https://ubuntu.com/security/CVE-2021-23214>
- <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-5645-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-23214>

---

Data as of 2026-12-05T03:01:31.390Z. 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
