Vulnerability · Published Mar 4, 2022 · Assigned by redhat

CVE-2021-23214

High 8.1

In plain English

A high-severity SQL injection in postgresql. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)8.1High
Exploit odds (30 days)1.9%top 20.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2021:5236
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2021:5235
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2021:5235
AlmaLinux:8pg_repack1.4.6-3.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8pg_repack1.4.6-3.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8pg_repack1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2021:5236
AlmaLinux:8pgaudit1.5.0-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8pgaudit1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2021:5235
AlmaLinux:8pgaudit1.4.0-5.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2021:5236
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2021:5236
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2021:5235
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2021:5235
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2021:5236
AlmaLinux:8postgres-decoderbufs0.10.0-2.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-contrib12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-contrib13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-contrib10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-docs12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-docs13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-docs10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-plperl10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-plperl13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-plperl12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-plpython310.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-plpython312.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-plpython313.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-pltcl13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-pltcl12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-pltcl10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-server10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-server12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-server13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-server-devel10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-server-devel13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-server-devel12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-static10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-static12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-static13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-test12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-test13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-test10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-test-rpm-macros12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-test-rpm-macros13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-test-rpm-macros10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-upgrade12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-upgrade10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
AlmaLinux:8postgresql-upgrade13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-upgrade-devel13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux:8postgresql-upgrade-devel12.9-1.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux:8postgresql-upgrade-devel10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2022:1830
Alpine:v3.20postgresql1414.1-r0ALPINE-CVE-2021-23214
Alpine:v3.20postgresql1514.1-r0ALPINE-CVE-2021-23214
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2021:5236
Rocky Linux:8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2021:5235
Rocky Linux:8pgaudit0:1.4.0-5.module+el8.5.0+686+20453eccRLSA-2021:5235
Rocky Linux:8pgaudit0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2021:5236
Rocky Linux:8pgaudit0:1.5.0-1.module+el8.4.0+546+3620623eRLSA-2021:5236
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:5236
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2021:5235
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:5235
Rocky Linux:8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2021:5236
Rocky Linux:8postgresql0:10.19-1.module+el8.6.0+802+f92d3c38RLSA-2022:1830
Rocky Linux:8postgresql0:13.5-1.module+el8.5.0+725+42e826deRLSA-2021:5236
Rocky Linux:8postgresql0:12.9-1.module+el8.5.0+724+9de6e501RLSA-2021:5235

Affected products (as reported)

VendorProductVersions
n/a postgresql Affects v9.6 to v14

Weakness: CWE-89

References