Live threats

All CVEs / Postgresql

CVE-2021-23214Postgresql

High 8.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Postgresql.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
postgresqlpostgresql< 9.6.24
postgresqlpostgresql≥ 10.0 < 10.19
postgresqlpostgresql≥ 11.0 < 11.14
postgresqlpostgresql≥ 12.0 < 12.9
postgresqlpostgresql≥ 13.0 < 13.5
postgresqlpostgresql14.0
fedoraprojectfedora34
fedoraprojectfedora35
redhatsoftware_collections1.0
redhatenterprise_linux8.0
redhatenterprise_linux_for_ibm_z_systems8.0
redhatenterprise_linux_for_power_little_endian8.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.