Read the docs
TI-2021-05981 Aliases CVE-2021-23222GHSA-735f-7qx4-jqq5

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

VendorProductAffected versionsFixed inStatusSource
—postgresqlAffects v9.6 to v14—No fix listedCNA
  • postgresql Vendor— Affected Affects v9.6 to v14 Fixed in — No fix listed CNA

CPE configurations NVD · 2

CPEVersionsRoleVendor
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.5VulnerablePostgreSQL
cpe:2.3:a:postgresql:postgresql:14.0:*:*:*:*:*:*:*14.0VulnerablePostgreSQL
  • 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 Low
    libpq 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 Moderate
    rh-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 Moderate
    rh-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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 5AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Software CollectionsAffectedNo 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

  1. 2026-10-02 Threatist record created from CVE-2021-23222
  2. 2026-10-03 Alias added: GHSA-735f-7qx4-jqq5

References

  • 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
See all 202 →

Sources