CVEfocus › CVE database › CVE-2021-23214

CVE-2021-23214

EPSS 1.9% (higher than 80% of CVEs)Published 2022-03-04Updated 2024-08-03Assigner: redhat

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.

CWE-89

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

61Fixed
3Fix pending
25Will not fix
17Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04postgresql-12Fixed12.9-0ubuntu0.20.04.1UBUNTU-CVE-2021-23214
Ubuntu 18.04postgresql-10Fixed10.19-0ubuntu0.18.04.1UBUNTU-CVE-2021-23214
Ubuntu 16.04postgresql-9.5Fix pending9.5.25-0ubuntu0.16.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-23214
Ubuntu 14.04postgresql-9.1Fix pending
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2021-23214
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Enterprise Linux 9postgresql-contribNot affected
Red Hat Enterprise Linux 9postgresql-docsNot affected
Red Hat Enterprise Linux 9postgresql-plperlNot affected
Red Hat Enterprise Linux 9postgresql-plpython3Not affected
Red Hat Enterprise Linux 9postgresql-pltclNot affected
Red Hat Enterprise Linux 9postgresql-private-develNot affected
Red Hat Enterprise Linux 9postgresql-private-libsNot affected
Red Hat Enterprise Linux 9postgresql-serverNot affected
Red Hat Enterprise Linux 9postgresql-server-develNot affected
Red Hat Enterprise Linux 9postgresql-staticNot affected
Red Hat Enterprise Linux 9postgresql-testNot affected
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosNot affected
Red Hat Enterprise Linux 9postgresql-upgradeNot affected
Red Hat Enterprise Linux 9postgresql-upgrade-develNot affected
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8libpq-develNot affected
Red Hat Enterprise Linux 8pg_repackFixed
Will not fix
0:1.4.6-3.module+el8.5.0+11354+78b3c9c5RHSA-2021:5236
Red Hat Enterprise Linux 8pgauditFixed
Will not fix
0:1.5.0-1.module+el8.4.0+8873+b821c30aRHSA-2021:5235
Red Hat Enterprise Linux 8postgres-decoderbufsFixed
Will not fix
0:0.10.0-2.module+el8.4.0+8873+b821c30aRHSA-2021:5235
Red Hat Enterprise Linux 8postgresqlFixed
Will not fix
0:10.19-1.module+el8.6.0+13642+78853f5aRHSA-2021:5235
Red Hat Enterprise Linux 8postgresql-contribFixed
Will not fix
0:13.5-1.module+el8.5.0+13344+8c0fd184RHSA-2022:1830
Red Hat Enterprise Linux 8postgresql-docsFixed
Will not fix
0:12.9-1.module+el8.5.0+13373+4554acc4RHSA-2021:5236
Red Hat Enterprise Linux 8postgresql-plperlFixed
Will not fix
0:10.19-1.module+el8.6.0+13642+78853f5aRHSA-2021:5236
Red Hat Enterprise Linux 8postgresql-plpython3Fixed
Will not fix
0:13.5-1.module+el8.5.0+13344+8c0fd184RHSA-2022:1830
Red Hat Enterprise Linux 8postgresql-pltclFixed
Will not fix
0:10.19-1.module+el8.6.0+13642+78853f5aRHSA-2021:5235
Red Hat Enterprise Linux 8postgresql-private-develWill not fix
Will not fix
Red Hat Enterprise Linux 8postgresql-private-libsWill not fix
Will not fix
Red Hat Enterprise Linux 8postgresql-serverFixed
Will not fix
0:12.9-1.module+el8.5.0+13373+4554acc4RHSA-2022:1830
Red Hat Enterprise Linux 8postgresql-server-develFixed
Will not fix
0:13.5-1.module+el8.5.0+13344+8c0fd184RHSA-2022:1830
Red Hat Enterprise Linux 8postgresql-staticFixed
Will not fix
0:13.5-1.module+el8.5.0+13344+8c0fd184RHSA-2022:1830
Red Hat Enterprise Linux 8postgresql-testFixed
Will not fix
0:12.9-1.module+el8.5.0+13373+4554acc4RHSA-2021:5236
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFixed
Will not fix
0:10.19-1.module+el8.6.0+13642+78853f5aRHSA-2021:5235
Red Hat Enterprise Linux 8postgresql-upgradeFixed
Will not fix
0:13.5-1.module+el8.5.0+13344+8c0fd184RHSA-2021:5235
Red Hat Enterprise Linux 8postgresql-upgrade-develFixed
Will not fix
0:12.9-1.module+el8.5.0+13373+4554acc4RHSA-2021:5236
Red Hat Enterprise Linux 7postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-testWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-upgradeWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
Red Hat Enterprise Linux 5postgresqlWill not fix
Out of support scope
AlmaLinux 8pg_repackFixed1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2021:5236
AlmaLinux 8pgauditFixed1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2021:5235
AlmaLinux 8postgres-decoderbufsFixed0.10.0-2.module_el8.5.0+2607+8c0fd184ALSA-2021:5235
AlmaLinux 8postgresqlFixed12.9-1.module_el8.5.0+2606+4554acc4ALSA-2022:1830
AlmaLinux 8postgresql-contribFixed13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2022:1830
AlmaLinux 8postgresql-docsFixed13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2022:1830
AlmaLinux 8postgresql-plperlFixed10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2021:5235
AlmaLinux 8postgresql-plpython3Fixed12.9-1.module_el8.5.0+2606+4554acc4ALSA-2022:1830
AlmaLinux 8postgresql-pltclFixed13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2022:1830
AlmaLinux 8postgresql-serverFixed12.9-1.module_el8.5.0+2606+4554acc4ALSA-2022:1830
AlmaLinux 8postgresql-server-develFixed10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2021:5236
AlmaLinux 8postgresql-staticFixed10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2021:5236
AlmaLinux 8postgresql-testFixed12.9-1.module_el8.5.0+2606+4554acc4ALSA-2022:1830
AlmaLinux 8postgresql-test-rpm-macrosFixed13.5-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5235
AlmaLinux 8postgresql-upgradeFixed10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2021:5236
AlmaLinux 8postgresql-upgrade-develFixed10.19-1.module_el8.6.0+2744+ce3fc19aALSA-2021:5236
Rocky Linux 8pg_repackFixed0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2021:5235
Rocky Linux 8pgauditFixed0:1.4.0-5.module+el8.5.0+686+20453eccRLSA-2021:5236
Rocky Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:5235
Rocky Linux 8postgresqlFixed0:12.9-1.module+el8.5.0+724+9de6e501RLSA-2022:1830
Alpine Linux 3.20postgresql14Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.20postgresql15Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.19postgresql13Fixed13.5-r0ALPINE-CVE-2021-23214
Alpine Linux 3.19postgresql14Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.19postgresql15Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.18postgresql12Fixed12.9-r0ALPINE-CVE-2021-23214
Alpine Linux 3.18postgresql13Fixed13.5-r0ALPINE-CVE-2021-23214
Alpine Linux 3.18postgresql14Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.18postgresql15Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.17postgresql12Fixed12.9-r0ALPINE-CVE-2021-23214
Alpine Linux 3.17postgresql13Fixed13.5-r0ALPINE-CVE-2021-23214
Alpine Linux 3.17postgresql14Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.17postgresql15Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.16postgresql12Fixed12.9-r0ALPINE-CVE-2021-23214
Alpine Linux 3.16postgresql13Fixed13.5-r0ALPINE-CVE-2021-23214
Alpine Linux 3.16postgresql14Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.15postgresql12Fixed12.9-r0ALPINE-CVE-2021-23214
Alpine Linux 3.15postgresql13Fixed13.5-r0ALPINE-CVE-2021-23214
Alpine Linux 3.15postgresql14Fixed14.1-r0ALPINE-CVE-2021-23214
Alpine Linux 3.14postgresqlFixed13.5-r0ALPINE-CVE-2021-23214
Alpine Linux 3.13postgresqlFixed13.5-r0ALPINE-CVE-2021-23214
Alpine Linux 3.12postgresqlFixed12.9-r0ALPINE-CVE-2021-23214
Alpine Linux 3.11postgresqlFixed12.9-r0ALPINE-CVE-2021-23214

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.