Vulnerabilities · 2021 · Postgresql
CVE-2021-23214
Postgresql vulnerability
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.
Affected products
Postgresql, Fedora, Software Collections, Enterprise Linux, Enterprise Linux For Ibm Z Systems, Enterprise Linux For Power Little Endian. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Postgresql runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.postgresql.org/support/security/CVE-2021-23214/ · Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2022666 · Patch
- github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951 · Patch
- security.gentoo.org/glsa/202211-04 · Third Party Advisory
- git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca
- nvd.nist.gov/vuln/detail/CVE-2021-23214
- cve.org/CVERecord?id=CVE-2021-23214
More vulnerabilities in Postgresql products
CVE-2025-49146CVE-2024-10979CVE-2024-10978CVE-2024-10977CVE-2024-10976CVE-2024-7348CVE-2024-4317CVE-2024-1597All 168
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.