Vulnerability · Published Mar 2, 2022 · Assigned by redhat
CVE-2021-23222
Medium 5.9
In plain English
A medium-severity security flaw in postgresql. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.9Medium
Exploit odds (30 days)1.5%top 25.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libpq | 13.5-1.el8 | ALSA-2022:1891 |
| AlmaLinux:8 | libpq-devel | 13.5-1.el8 | ALSA-2022:1891 |
| Alpine:v3.20 | postgresql14 | 14.1-r0 | ALPINE-CVE-2021-23222 |
| Alpine:v3.20 | postgresql15 | 14.1-r0 | ALPINE-CVE-2021-23222 |
| Rocky Linux:8 | libpq | 0:13.5-1.el8 | RLSA-2022:1891 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | postgresql | Affects v9.6 to v14 |
Weakness: CWE-522
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2022675
- https://www.postgresql.org/support/security/CVE-2021-23222/
- https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=d83cdfdca9d918bbbd6bb209139b94c954da7228
- https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45
- GLSA-202211-04 vendor-advisory