Insufficiently protected credentials in postgresql
Priority LOW 29CWE-522Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 3 fixed, 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-522.
Summary
A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification and encryption.
Why it matters now
EPSS 0.01501 74th percentileScored 2026-11-07
Fix Partial Red Hat: 3 advisoriesRed Hat: 3 fixed, 4 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 · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:* | 9.6 to 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:a:postgresql:postgresql:*:*:*:*:*:*:*:* Versions 9.6 to 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
Remediation
Red Hat 3 advisories
- RHSA-2022:1891 Released 2022-05-10 · Red Hat rating Lowlibpq security update
- Red Hat Enterprise Linux AppStream (v. 8) libpq-13.5-1.el8, libpq-devel-13.5-1.el8
- 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: Low. 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 Software Collections | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:1891 |
| 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-23222
- 2026-10-03 Alias added: GHSA-735f-7qx4-jqq5
References
Advisory 3
More Postgresql vulnerabilities
- TI-2019-06651 In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and… CVSS 3.0HIGH 7.2
- TI-2017-05187 Improper authentication in postgresql CVSS 3.0CRITICAL 9.8
- TI-2020-15711 SQL injection in postgresql CVSS 3.1HIGH 8.8
- TI-2013-01675 Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9… CVSS 2.0MEDIUM 6.5
- TI-2007-03176 The Database Link library (dblink) in PostgreSQL 8.1 implements functions via CREATE… CVSS 2.0HIGH 9.0
- TI-2022-01423 SQL injection in postgresql CVSS 3.1HIGH 8.8
Sources
- CVE-2021-23222 · CVE Program
- CVE-2021-23222 · NVD
- FIRST EPSS
- GHSA-735f-7qx4-jqq5 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23222 · 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