cve.bz

CVE-2021-23214 SQL Injection

8.1 highEPSS 1.9%Fix available

High (8.1). EPSS 1.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23214 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23214?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23214?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23214 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlbefore 9.6.24
postgresql:postgresqlfrom 10.0 before 10.19
postgresql:postgresqlfrom 11.0 before 11.14
postgresql:postgresqlfrom 12.0 before 12.9
postgresql:postgresqlfrom 13.0 before 13.5
postgresql:postgresql14.0
fedoraproject:fedora34
fedoraproject:fedora35
redhat:software_collections1.0
redhat:enterprise_linux8.0
redhat:enterprise_linux_for_ibm_z_systems8.0
redhat:enterprise_linux_for_power_little_endian8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9postgresql-9.69.6.24-0+deb9u1DLA-2817-1
Debian10postgresql-1111.14-0+deb10u1DSA-5006-1
Debian11postgresql-1313.5-0+deb11u1DEBIAN-CVE-2021-23214 DSA-5007-1
Ubuntu18.04:LTSpostgresql-1010.19-0ubuntu0.18.04.1UBUNTU-CVE-2021-23214 USN-5145-1
Ubuntu20.04:LTSpostgresql-1212.9-0ubuntu0.20.04.1UBUNTU-CVE-2021-23214 USN-5145-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2021-23214
UbuntuPro:16.04:LTSpostgresql-9.59.5.25-0ubuntu0.16.04.1+esm1UBUNTU-CVE-2021-23214 USN-5645-1
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.5.0+11354+78b3c9c5RHSA-2021:5235
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.5.0+11357+bcc62552RHSA-2021:5236
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-5.module+el8.5.0+11354+78b3c9c5RHSA-2021:5235
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.4.0+8873+b821c30aRHSA-2021:5236
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.4.0+8873+b821c30aRHSA-2021:5236
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.5.0+11354+78b3c9c5RHSA-2021:5235
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:10.19-1.module+el8.6.0+13642+78853f5aRHSA-2022:1830
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.9-1.module+el8.5.0+13373+4554acc4RHSA-2021:5235
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:13.5-1.module+el8.5.0+13344+8c0fd184RHSA-2021:5236
Red Hatrhel_software_collections:3::el7rh-postgresql12-postgresql, rh-postgresql12-postgresql-docs, rh-postgresql12-postgresql-libs and 12 more0:12.9-1.el7RHSA-2021:5197
Red Hatrhel_software_collections:3::el7rh-postgresql13-postgresql, rh-postgresql13-postgresql-docs, rh-postgresql13-postgresql-libs and 13 more0:13.5-1.el7RHSA-2021:5179
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morepostgresql12.0.1-150000.8.19.1SUSE-SU-2022:2893-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 morepostgresql1010.19-8.41.1SUSE-SU-2021:4058-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 morepostgresql1212.12-150100.3.33.1SUSE-SU-2022:2958-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morepostgresql14-4.10.1SUSE-SU-2021:3755-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morepostgresql1010.19-4.22.1SUSE-SU-2021:3761-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 morepostgresql1414.1-3.3.1SUSE-SU-2021:3755-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 morepostgresql969.6.24-6.18.2SUSE-SU-2021:3757-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morepostgresql1010.22-150000.4.42.1SUSE-SU-2022:2893-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 3 morepostgresql1313.5-5.22.1SUSE-SU-2021:3762-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 3 morepostgresql1414.1-5.6.1SUSE-SU-2021:3759-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Legacy 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 2 morepostgresql1212.9-8.26.1SUSE-SU-2021:3758-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1212.9-3.21.1SUSE-SU-2021:3760-1
1 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2postgresql1010.19-lp152.2.27.1openSUSE-SU-2021:1584-1
openSUSELeap 15.3postgresql1010.19-8.41.1openSUSE-SU-2021:4058-1
openSUSELeap 15.3postgresql1212.9-8.26.1openSUSE-SU-2021:3758-1
openSUSELeap 15.3postgresql1313.5-5.22.1openSUSE-SU-2021:3762-1
openSUSELeap 15.3postgresql1414.1-5.6.1openSUSE-SU-2021:3759-1
openSUSETumbleweedpostgresql1010.19-1.1openSUSE-SU-2024:11625-1
openSUSETumbleweedpostgresql1111.14-1.1openSUSE-SU-2024:11626-1
openSUSETumbleweedpostgresql1212.9-1.1openSUSE-SU-2024:11627-1
openSUSETumbleweedpostgresql1313.5-1.1openSUSE-SU-2024:11628-1
openSUSETumbleweedpostgresql1414.1-1.1openSUSE-SU-2024:11629-1
openSUSETumbleweedpostgresql1515.4-2.1openSUSE-SU-2024:13243-1
openSUSETumbleweedpostgresql1616.4-1.1openSUSE-SU-2024:14360-1
1 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8pg_repack1.4.6-3.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux8pg_repack1.4.6-3.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2021:5235 ALSA-2021:5236
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2021:5235 ALSA-2021:5236
AlmaLinux8pgaudit1.4.0-5.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux8pgaudit1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2021:5235
AlmaLinux8pgaudit1.5.0-1.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2021:5236
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.5.0+2606+4554acc4ALSA-2021:5235
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.5.0+2607+8c0fd184ALSA-2021:5236
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2021:5235 ALSA-2021:5236
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2021:5235 ALSA-2021:5236
3 more for AlmaLinux in the JSON.
Rocky Linux8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2021:5235 RLSA-2021:5236
Rocky Linux8pgaudit0:1.4.0-5.module+el8.5.0+686+20453eccRLSA-2021:5235
Rocky Linux8pgaudit0:1.5.0-1.module+el8.4.0+546+3620623eRLSA-2021:5236
Rocky Linux8pgaudit0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2021:5236
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2021:5235 RLSA-2021:5236
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2021:5235 RLSA-2021:5236
Rocky Linux8postgresql0:10.19-1.module+el8.6.0+802+f92d3c38RLSA-2022:1830
Rocky Linux8postgresql0:12.9-1.module+el8.5.0+724+9de6e501RLSA-2021:5235
Rocky Linux8postgresql0:13.5-1.module+el8.5.0+725+42e826deRLSA-2021:5236
Alpinev3.11, v3.12postgresql12.9-r0ALPINE-CVE-2021-23214
Alpinev3.13, v3.14postgresql13.5-r0ALPINE-CVE-2021-23214
Alpinev3.15, v3.16postgresql1414.1-r0ALPINE-CVE-2021-23214
Alpinev3.15, v3.16, v3.17 and 1 morepostgresql1212.9-r0ALPINE-CVE-2021-23214
Alpinev3.15, v3.16, v3.17 and 2 morepostgresql1313.5-r0ALPINE-CVE-2021-23214
Alpinev3.17, v3.18, v3.19 and 1 morepostgresql14, postgresql1514.1-r0ALPINE-CVE-2021-23214
Azure Linux2postgresql14.2-1AZL-8973

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In Red Hat Virtualization the manager appliance uses a vulnerable version of postgresql. Once a fix has been shipped for RHEL 8 the appliance can consume the fix via a regular yum update.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8postgresql:12-8050020211122082354.c5368500Fixed 2021-12-21RHSA-2021:5235
Red Hat Enterprise Linux 8postgresql:13-8050020211119210550.c5368500Fixed 2021-12-21RHSA-2021:5236
Red Hat Enterprise Linux 8postgresql:10-8060020211213101623.d63f516dFixed 2022-05-10RHSA-2022:1830
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-postgresql13-postgresql-0:13.5-1.el7Fixed 2021-12-16RHSA-2021:5179
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-postgresql12-postgresql-0:12.9-1.el7Fixed 2021-12-16RHSA-2021:5197
Red Hat build of Debezium 1postgresqlNot affected
Red Hat build of QuarkuspostgresqlNot affected
Red Hat Decision Manager 7postgresqlNot affected
Red Hat Enterprise Linux 5postgresqlOut of support scope
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlOut of support scope
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8postgresql:9.6/postgresqlWill not fix
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Fuse 7postgresqlNot affected
Red Hat Integration Camel K 1postgresqlNot affected
Red Hat Integration Camel Quarkus 1postgresqlNot affected
Red Hat Integration Service RegistrypostgresqlNot affected
Red Hat JBoss Fuse 6postgresqlNot affected
Red Hat JBoss Operations Network 3postgresqlNot affected
2 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23214.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON