# CVE-2021-23214: When the server is configured to use trust authentication with a clientcert requirement or to use cert authentication, a man-in-the-middle…

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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.90%, higher than 80% of CVEs (2026-12-01)
- Published: 2022-03-04T00:00:00.000Z
- Modified: 2026-09-08T08:48:22.976Z
- Also known as: BIT-POSTGRESQL-2021-23214
- Weaknesses: CWE-89
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- postgresql: Affects v9.6 to v14
- postgresql postgresql: 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
- fedoraproject fedora: 34; 35
- redhat software_collections: 1.0
- redhat enterprise_linux: 8.0
- redhat enterprise_linux_for_ibm_z_systems: 8.0
- redhat enterprise_linux_for_power_little_endian: 8.0
- postgresql (Bitnami): 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 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2022666> (advisory, issue-tracking, patch, third-party-advisory)
- <https://www.postgresql.org/support/security/CVE-2021-23214/> (advisory, vendor-advisory)
- <https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951> (web)
- <https://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951> (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-23214> (web)

## Sources

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

---

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