CVE-2021-23222
publishedpostgresql: libpq processes unencrypted bytes from man-in-the-middle
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | postgresqlAffects v9.6 to v14 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL12-2023-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL12-2023-003 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL13-2023-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2024-008 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2POSTGRESQL14-2024-009 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | v3.11 | postgresql | Fixed | 12.9-r0 | Package fix record |
| SUSE / openSUSE | SLE-12-SP2 | postgresqlnoarch | Advisory build | 14-4.10.1 | SUSE-SU-2021:3755-1 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | libpq | Advisory build | 13.5-1.el8 | ALSA-2022:1891 |
| Debian | bullseye | postgresql-13 | Advisory build | 13.5-0+deb11u1 | DSA-5007-1 |
| Oracle Linux | 8 | libpqaarch64 | Advisory build | 0:13.5-1.el8 | ELSA-2022-1891 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresqlsrc | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Alpine Linux | v3.12 | postgresql | Fixed | 12.9-r0 | Package fix record |
| Alpine Linux | v3.13 | postgresql | Fixed | 13.5-r0 | Package fix record |
| Alpine Linux | v3.14 | postgresql | Fixed | 13.5-r0 | Package fix record |
| SUSE / openSUSE | SLE-12-SP3 | postgresqlnoarch | Advisory build | 14-4.10.1 | SUSE-SU-2021:3755-1 |
| SUSE / openSUSE | SLE-12-SP4 | postgresqlnoarch | Advisory build | 14-4.10.1 | SUSE-SU-2021:3755-1 |
| SUSE / openSUSE | SLE-12-SP5 | postgresqlnoarch | Advisory build | 14-4.10.1 | SUSE-SU-2021:3755-1 |
| SUSE / openSUSE | SLE-15 | postgresqlnoarch | Advisory build | 12.0.1-150000.8.19.1 | SUSE-SU-2022:2893-1 |
| SUSE / openSUSE | SLE-15-SP1 | postgresqlnoarch | Advisory build | 12.0.1-150000.8.19.1 | SUSE-SU-2022:2893-1 |
| AlmaLinux | 8 | libpq-devel | Advisory build | 13.5-1.el8 | ALSA-2022:1891 |
| Alpine Linux | v3.15 | postgresql12 | Fixed | 12.9-r0 | Package fix record |
| Alpine Linux | v3.15 | postgresql13 | Fixed | 13.5-r0 | Package fix record |
| Alpine Linux | v3.15 | postgresql14 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql12 | Fixed | 12.9-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql13 | Fixed | 13.5-r0 | Package fix record |
| Alpine Linux | v3.16 | postgresql14 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql12 | Fixed | 12.9-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql13 | Fixed | 13.5-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql14 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.17 | postgresql15 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql12 | Fixed | 12.9-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql13 | Fixed | 13.5-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql14 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.18 | postgresql15 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql13 | Fixed | 13.5-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql14 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.19 | postgresql15 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql14 | Fixed | 14.1-r0 | Package fix record |
| Alpine Linux | v3.20 | postgresql15 | Fixed | 14.1-r0 | Package fix record |
| Debian | buster | postgresql-11 | Advisory build | 11.14-0+deb10u1 | DSA-5006-1 |
| Debian | stretch | postgresql-9.6 | Advisory build | 9.6.24-0+deb9u1 | DLA-2817-1 |
| Oracle Linux | 8 | libpqx86_64 | Advisory build | 0:13.5-1.el8 | ELSA-2022-1891 |
| Oracle Linux | 8 | libpq-develaarch64 | Advisory build | 0:13.5-1.el8 | ELSA-2022-1891 |
| Oracle Linux | 8 | libpq-develx86_64 | Advisory build | 0:13.5-1.el8 | ELSA-2022-1891 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresqlx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-contribx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-contrib-syspathsx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-debuginfox86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-develx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-docsx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-libsx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-plperlx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-plpythonx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-pltclx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-serverx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-server-syspathsx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-staticx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-syspathsx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql12-postgresql-testx86_64 | Advisory build | 12.9-1.el7 | RHSA-2021:5197 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresqlsrc | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresqlx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-contribx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-contrib-syspathsx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-debuginfox86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-develx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-docsx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-libsx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-plperlx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-plpythonx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-plpython3x86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-pltclx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-serverx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-server-syspathsx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-staticx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-syspathsx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-7 | rh-postgresql13-postgresql-testx86_64 | Advisory build | 13.5-1.el7 | RHSA-2021:5179 |
| Red Hat Enterprise Linux | RHEL-8 | libpqaarch64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpqi686 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpqppc64le | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpqs390x | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpqsrc | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpqx86_64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debuginfoaarch64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debuginfoi686 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debuginfoppc64le | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debuginfos390x | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debuginfox86_64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debugsourceaarch64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debugsourcei686 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debugsourceppc64le | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debugsources390x | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-debugsourcex86_64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-develaarch64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-develi686 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-develppc64le | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-devels390x | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-develx86_64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-devel-debuginfoaarch64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-devel-debuginfoi686 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-devel-debuginfoppc64le | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-devel-debuginfos390x | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| Red Hat Enterprise Linux | RHEL-8 | libpq-devel-debuginfox86_64 | Advisory build | 13.5-1.el8 | RHSA-2022:1891 |
| SUSE / openSUSE | SLE-12-SP2 | libecpg6x86_64 | Advisory build | 14.1-3.3.1 | SUSE-SU-2021:3755-1 |
| SUSE / openSUSE | SLE-12-SP2 | libpq5x86_64 | Advisory build | 14.1-3.3.1 | SUSE-SU-2021:3755-1 |
| SUSE / openSUSE | SLE-12-SP2 | libpq5-32bitx86_64 | Advisory build | 14.1-3.3.1 | SUSE-SU-2021:3755-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | postgresql | Affects v9.6 to v14 (affected) | redhat · cna |
Weaknesses
1- CWE-522 CWE-522 - Insufficiently Protected Credentials
References
5- https://bugzilla.redhat.com/show_bug.cgi?id=2022675
- https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=d83cdfdca9d918bbbd6bb209139b94c954da7228
- https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45
- GLSA-202211-04 https://security.gentoo.org/glsa/202211-04
- https://www.postgresql.org/support/security/CVE-2021-23222/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3b6cf495b0e81a7f1f6b31f550fbe6b3c24c1e5b83d6af32da7d877d05b343f8
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record