CVE-2021-23222: postgresql Insufficiently Protected Credentials
Vulnerability summary
CVE-2021-23222 is a medium (CVSS 5.9) Insufficiently Protected Credentials vulnerability in postgresql. EPSS estimates a 1.40% chance of exploitation in the next 30 days, higher than 73.4% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 31 · Related 25Timeline
- 02-03-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · Red hatEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.40%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
Decrease -0.10 pp
From 1.50% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine5 products
- postgresql≥ 9.6, < 12.9-r0 | ≥ 9.6, < 13.5-r0 | ≥ 12.0, < 12.9-r0 | ≥ 13.0, < 13.5-r0
- postgresql12< 12.9-r0
- postgresql13< 13.5-r0
- postgresql14< 14.1-r0
- postgresql15< 14.1-r0
Redhat5 products
- libpq< 0:13.5-1.el8
- libpq-debuginfo< 0:13.5-1.el8
- libpq-debugsource< 0:13.5-1.el8
- libpq-devel< 0:13.5-1.el8
- libpq-devel-debuginfo< 0:13.5-1.el8
Ubuntu4 products
- postgresql-10< 10.19-0ubuntu0.18.04.1
- postgresql-12< 12.9-0ubuntu0.20.04.1
- postgresql-9.3All versions (No fix recorded)
- postgresql-9.5< 9.5.25-0ubuntu0.16.04.1+esm3
Debian1 product
- postgresql-13< 13.5-0+deb11u1
Postgresql1 product
- postgresqlEOL≥ 9.6, < 9.6.24 | ≥ 10.0, < 10.19 | ≥ 11.0, < 11.14 | ≥ 12.0, < 12.9 | ≥ 13.0, < 13.5 | 14.0
5 vendors · 16 products
References
18 links- github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45PatchThird Party Advisory