SQL injection in postgresql
Priority LOW 39CWE-89Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 3 fixed, 5 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-89.
Summary
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.
Why it matters now
EPSS 0.01901 79th percentileScored 2026-11-07
Fix Partial Red Hat: 5 advisoriesRed Hat: 3 fixed, 5 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | postgresql | Affects v9.6 to v14 | — | No fix listed | CNA |
- postgresql Vendor— Affected Affects v9.6 to v14 Fixed in — No fix listed CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | before 9.6.24; 10.0 to before 10.19; 11.0 to before 11.14; 12.0 to before 12.9; 13.0 to before 13.5 | Vulnerable | PostgreSQL |
| cpe:2.3:a:postgresql:postgresql:14.0:*:*:*:*:*:*:* | 14.0 | Vulnerable | PostgreSQL |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:a:redhat:software_collections:1.0:*:*:*:*:*:*:* | 1.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
- cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions before 9.6.24; 10.0 to before 10.19; 11.0 to before 11.14; 12.0 to before 12.9; 13.0 to before 13.5 Vulnerable ·PostgreSQL
- cpe:2.3:a:postgresql:postgresql:14.0:*:*:*:*:*:*:* Versions 14.0 Vulnerable ·PostgreSQL
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:a:redhat:software_collections:1.0:*:*:*:*:*:*:* Versions 1.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
Remediation
Red Hat 5 advisories
- RHSA-2022:1830 Released 2022-05-10 · Red Hat rating Moderatepostgresql:10 security update
- Red Hat Enterprise Linux AppStream (v. 8) postgresql-10.19-1.module+el8.6.0+13642+78853f5a.aarch64::postgresql:10, postgresql-10.19-1.module+el8.6.0+13642+78853f5a.ppc64le::postgresql:10, postgresql-10.19-1.module+el8.6.0+13642+78853f5a.s390x::postgresql:10 +47
- RHSA-2021:5236 Released 2021-12-21 · Red Hat rating Moderatepostgresql:13 security update
- Red Hat Enterprise Linux AppStream (v. 8) pg_repack-1.4.6-3.module+el8.5.0+11357+bcc62552.aarch64::postgresql:13, pg_repack-1.4.6-3.module+el8.5.0+11357+bcc62552.ppc64le::postgresql:13, pg_repack-1.4.6-3.module+el8.5.0+11357+bcc62552.s390x::postgresql:13 +47
- RHSA-2021:5235 Released 2021-12-21 · Red Hat rating Moderatepostgresql:12 security update
- Red Hat Enterprise Linux AppStream (v. 8) pg_repack-1.4.6-3.module+el8.5.0+11354+78b3c9c5.aarch64::postgresql:12, pg_repack-1.4.6-3.module+el8.5.0+11354+78b3c9c5.ppc64le::postgresql:12, pg_repack-1.4.6-3.module+el8.5.0+11354+78b3c9c5.s390x::postgresql:12 +47
Show 2 more Red Hat advisories
- RHSA-2021:5197 Released 2021-12-16 · Red Hat rating Moderaterh-postgresql12-postgresql security update
- Red Hat Software Collections for RHEL Workstation(v. 7) rh-postgresql12-postgresql-12.9-1.el7, rh-postgresql12-postgresql-contrib-12.9-1.el7, rh-postgresql12-postgresql-contrib-syspaths-12.9-1.el7 +11
- Red Hat Software Collections for RHEL(v. 7) rh-postgresql12-postgresql-12.9-1.el7, rh-postgresql12-postgresql-contrib-12.9-1.el7, rh-postgresql12-postgresql-contrib-syspaths-12.9-1.el7 +11
- RHSA-2021:5179 Released 2021-12-16 · Red Hat rating Moderaterh-postgresql13-postgresql security update
- Red Hat Software Collections for RHEL Workstation(v. 7) rh-postgresql13-postgresql-13.5-1.el7, rh-postgresql13-postgresql-contrib-13.5-1.el7, rh-postgresql13-postgresql-contrib-syspaths-13.5-1.el7 +12
- Red Hat Software Collections for RHEL(v. 7) rh-postgresql13-postgresql-13.5-1.el7, rh-postgresql13-postgresql-contrib-13.5-1.el7, rh-postgresql13-postgresql-contrib-syspaths-13.5-1.el7 +12
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2021:5235, RHSA-2021:5236, RHSA-2022:1830 |
| Red Hat Software Collections for RHEL Workstation(v. 7) | Fixed | RHSA-2021:5179, RHSA-2021:5197 |
| Red Hat Software Collections for RHEL(v. 7) | Fixed | RHSA-2021:5179, RHSA-2021:5197 |
Not affected: 12 products
- Red Hat Decision Manager 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Fuse 7
- Red Hat Integration Camel K 1
- Red Hat Integration Camel Quarkus 1
- Red Hat Integration Service Registry
- Red Hat JBoss Fuse 6
- Red Hat JBoss Operations Network 3
- Red Hat Process Automation 7
- Red Hat build of Debezium 1
- Red Hat build of Quarkus
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23214
- 2026-10-03 Alias added: GHSA-467w-rrqc-395f
References
Patch 2
Sources
- CVE-2021-23214 · CVE Program
- CVE-2021-23214 · NVD
- FIRST EPSS
- GHSA-467w-rrqc-395f · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23214 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences