CVE-2021-23214Postgresql
High 8.1 No auth needed
Follow: this CVE · Postgresql · Postgresql We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Mar 4, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Postgresql.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| postgresql | postgresql | < 9.6.24 |
| postgresql | postgresql | ≥ 10.0 < 10.19 |
| postgresql | postgresql | ≥ 11.0 < 11.14 |
| postgresql | postgresql | ≥ 12.0 < 12.9 |
| postgresql | postgresql | ≥ 13.0 < 13.5 |
| postgresql | postgresql | 14.0 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 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 |
Official advisories
- postgresql18-18.7-1.1 on GA media · SUSE · openSUSE-SU-2026:12654-1 · Nov 23, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Patch Third Party Advisory
- git.postgresql.org
- github.com Patch Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.postgresql.org Vendor Advisory