CVE-2021-23214
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
02 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
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 1.90% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 79.5% of scored records. A rank, not a probability.
- NVD base score
- 8.1 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2022-03-04 00:00Z4 YR AGO
- Last updated
- 2024-08-03 19:05Z2 YR AGO
- Reserved
- 2021-11-03
- Assigning CNA
- redhat
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')Base
- Data version
- 5.1
- Document digest
- a79c266fb4e34cc72be3f1206e00670b86b400e96f71f5bd4aa8f3454d25ce56
05 Affected products
06 References
- bugzilla.redhat.comhttps://bugzilla.redhat.com/show_bug.cgi?id=2022666
- www.postgresql.orghttps://www.postgresql.org/support/security/CVE-2021-23214/
- git.postgresql.orghttps://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commit%3Bh=28e24125541545483093819efae9bca603441951
- github.comhttps://github.com/postgres/postgres/commit/28e24125541545483093819efae9bca603441951
- security.gentoo.orgGLSA-202211-04https://security.gentoo.org/glsa/202211-04
07 Fixed in
AlmaLinux 8
- pg_repack Fixed
A version is affected if any line below covers it.
- Affected before 1.4.6-3.module_el8.5.0+2606+4554acc4
- Affected before 1.4.6-3.module_el8.5.0+2607+8c0fd184
- Affected before 1.4.6-3.module_el8.6.0+2758+4f4474df
- Affected before 1.4.6-3.module_el8.6.0+2760+1746ec94
- pgaudit Fixed
A version is affected if any line below covers it.
- Affected before 1.4.0-5.module_el8.5.0+2606+4554acc4
- Affected before 1.4.0-5.module_el8.6.0+2758+4f4474df
- Affected before 1.5.0-1.module_el8.5.0+2607+8c0fd184
- Affected before 1.5.0-1.module_el8.6.0+2760+1746ec94
- postgres-decoderbufs Fixed
A version is affected if any line below covers it.
- Affected before 0.10.0-2.module_el8.5.0+2606+4554acc4
- Affected before 0.10.0-2.module_el8.5.0+2607+8c0fd184
- Affected before 0.10.0-2.module_el8.6.0+2758+4f4474df
- Affected before 0.10.0-2.module_el8.6.0+2760+1746ec94
- postgresql Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-contrib Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-docs Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-plperl Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-plpython3 Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-pltcl Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-server Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-server-devel Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-static Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-test Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-test-rpm-macros Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-upgrade Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-upgrade-devel Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Arch Linux
- postgresql Fixed in 13.5-1
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
CloudLinux 8
- pg_repack Fixed
A version is affected if any line below covers it.
- Affected before 1.4.6-3.module_el8.5.0+2606+4554acc4
- Affected before 1.4.6-3.module_el8.5.0+2607+8c0fd184
- Affected before 1.4.6-3.module_el8.6.0+2758+4f4474df
- Affected before 1.4.6-3.module_el8.6.0+2760+1746ec94
- pgaudit Fixed
A version is affected if any line below covers it.
- Affected before 1.4.0-5.module_el8.5.0+2606+4554acc4
- Affected before 1.4.0-5.module_el8.6.0+2758+4f4474df
- Affected before 1.5.0-1.module_el8.5.0+2607+8c0fd184
- Affected before 1.5.0-1.module_el8.6.0+2760+1746ec94
- postgres-decoderbufs Fixed
A version is affected if any line below covers it.
- Affected before 0.10.0-2.module_el8.5.0+2606+4554acc4
- Affected before 0.10.0-2.module_el8.5.0+2607+8c0fd184
- Affected before 0.10.0-2.module_el8.6.0+2758+4f4474df
- Affected before 0.10.0-2.module_el8.6.0+2760+1746ec94
- postgresql Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-contrib Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-docs Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-plperl Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-plpython3 Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-pltcl Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-server Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-server-devel Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-static Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-test Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-test-rpm-macros Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-upgrade Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
- postgresql-upgrade-devel Fixed
A version is affected if any line below covers it.
- Affected before 10.19-1.module_el8.6.0+2744+ce3fc19a
- Affected before 12.9-1.module_el8.5.0+2606+4554acc4
- Affected before 13.5-1.module_el8.5.0+2607+8c0fd184
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 11
- postgresql-13 Fixed in 13.5-0+deb11u1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- postgresql-10 Fixed in 10.19-0ubuntu0.18.04.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- postgresql-12 Fixed in 12.9-0ubuntu0.20.04.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- postgresql-9.3 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- postgresql-9.5 Fixed in 9.5.25-0ubuntu0.16.04.1+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.