CVSS 3.1
5.9 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NMedium (5.9) in postgresql postgresql. EPSS 1.5% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NExplain CVE-2021-23222 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23222?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23222?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23222 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| postgresql:postgresql | from 9.6 before 9.6.24 |
| postgresql:postgresql | from 10.0 before 10.19 |
| postgresql:postgresql | from 11.0 before 11.14 |
| postgresql:postgresql | from 12.0 before 12.9 |
| postgresql:postgresql | from 13.0 before 13.5 |
| postgresql:postgresql | 14.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 9 | postgresql-9.6 | 9.6.24-0+deb9u1 | DLA-2817-1 |
| Debian | 10 | postgresql-11 | 11.14-0+deb10u1 | DSA-5006-1 |
| Debian | 11 | postgresql-13 | 13.5-0+deb11u1 | DSA-5007-1 |
| Ubuntu | 18.04:LTS | postgresql-10 | 10.19-0ubuntu0.18.04.1 | UBUNTU-CVE-2021-23222 USN-5145-1 |
| Ubuntu | 20.04:LTS | postgresql-12 | 12.9-0ubuntu0.20.04.1 | UBUNTU-CVE-2021-23222 USN-5145-1 |
| Ubuntu | Pro:14.04:LTS | postgresql-9.3 | no fix listed | UBUNTU-CVE-2021-23222 |
| Ubuntu | Pro:16.04:LTS | postgresql-9.5 | 9.5.25-0ubuntu0.16.04.1+esm3 | UBUNTU-CVE-2021-23222 USN-5765-1 |
| Red Hat | enterprise_linux:8::appstream | libpq, libpq-devel, libpq-debuginfo and 2 more | 0:13.5-1.el8 | RHSA-2022:1891 |
| Red Hat | rhel_software_collections:3::el7 | rh-postgresql12-postgresql, rh-postgresql12-postgresql-docs, rh-postgresql12-postgresql-libs and 12 more | 0:12.9-1.el7 | RHSA-2021:5197 |
| Red Hat | rhel_software_collections:3::el7 | rh-postgresql13-postgresql, rh-postgresql13-postgresql-docs, rh-postgresql13-postgresql-libs and 13 more | 0:13.5-1.el7 | RHSA-2021:5179 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 more | postgresql | 12.0.1-150000.8.19.1 | SUSE-SU-2022:2893-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 more | postgresql10 | 10.19-8.41.1 | SUSE-SU-2021:4058-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 more | postgresql12 | 12.12-150100.3.33.1 | SUSE-SU-2022:2958-1 |
| SUSE | HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 more | postgresql | 14-4.10.1 | SUSE-SU-2021:3755-1 |
| SUSE | HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 more | postgresql10 | 10.19-4.22.1 | SUSE-SU-2021:3761-1 |
| SUSE | HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 more | postgresql14 | 14.1-3.3.1 | SUSE-SU-2021:3755-1 |
| SUSE | HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 more | postgresql96 | 9.6.24-6.18.2 | SUSE-SU-2021:3757-1 |
| SUSE | Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 more | postgresql10 | 10.22-150000.4.42.1 | SUSE-SU-2022:2893-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 3 more | postgresql13 | 13.5-5.22.1 | SUSE-SU-2021:3762-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 3 more | postgresql14 | 14.1-5.6.1 | SUSE-SU-2021:3759-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Legacy 15 SP3, Linux Enterprise Module for Package Hub 15 SP2 and 2 more | postgresql12 | 12.9-8.26.1 | SUSE-SU-2021:3758-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 | postgresql12 | 12.9-3.21.1 | SUSE-SU-2021:3760-1 |
| 1 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.2 | postgresql10 | 10.19-lp152.2.27.1 | openSUSE-SU-2021:1584-1 |
| openSUSE | Leap 15.3 | postgresql10 | 10.19-8.41.1 | openSUSE-SU-2021:4058-1 |
| openSUSE | Leap 15.3 | postgresql12 | 12.9-8.26.1 | openSUSE-SU-2021:3758-1 |
| openSUSE | Leap 15.3 | postgresql13 | 13.5-5.22.1 | openSUSE-SU-2021:3762-1 |
| openSUSE | Leap 15.3 | postgresql14 | 14.1-5.6.1 | openSUSE-SU-2021:3759-1 |
| openSUSE | Tumbleweed | postgresql10 | 10.19-1.1 | openSUSE-SU-2024:11625-1 |
| openSUSE | Tumbleweed | postgresql11 | 11.14-1.1 | openSUSE-SU-2024:11626-1 |
| openSUSE | Tumbleweed | postgresql12 | 12.9-1.1 | openSUSE-SU-2024:11627-1 |
| openSUSE | Tumbleweed | postgresql13 | 13.5-1.1 | openSUSE-SU-2024:11628-1 |
| openSUSE | Tumbleweed | postgresql14 | 14.1-1.1 | openSUSE-SU-2024:11629-1 |
| openSUSE | Tumbleweed | postgresql15 | 15.4-2.1 | openSUSE-SU-2024:13243-1 |
| openSUSE | Tumbleweed | postgresql16 | 16.4-1.1 | openSUSE-SU-2024:14360-1 |
| 2 more for openSUSE in the JSON and on openSUSE's page. | ||||
| AlmaLinux | 8 | libpq, libpq-devel | 13.5-1.el8 | ALSA-2022:1891 |
| Rocky Linux | 8 | libpq | 0:13.5-1.el8 | RLSA-2022:1891 |
| Alpine | v3.11, v3.12 | postgresql | 12.9-r0 | ALPINE-CVE-2021-23222 |
| Alpine | v3.13, v3.14 | postgresql | 13.5-r0 | ALPINE-CVE-2021-23222 |
| Alpine | v3.15, v3.16 | postgresql14 | 14.1-r0 | ALPINE-CVE-2021-23222 |
| Alpine | v3.15, v3.16, v3.17 and 1 more | postgresql12 | 12.9-r0 | ALPINE-CVE-2021-23222 |
| Alpine | v3.15, v3.16, v3.17 and 2 more | postgresql13 | 13.5-r0 | ALPINE-CVE-2021-23222 |
| Alpine | v3.17, v3.18, v3.19 and 1 more | postgresql14, postgresql15 | 14.1-r0 | ALPINE-CVE-2021-23222 |
| Azure Linux | 2 | postgresql | 14.2-1 | AZL-8901 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Low.
In Red Hat Virtualization the manager appliance uses a vulnerable version of postgresql. Once a fix has been shipped for RHEL 8 the appliance can consume the fix via a regular yum update.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | libpq-0:13.5-1.el8 | Fixed 2022-05-10 | RHSA-2022:1891 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql13-postgresql-0:13.5-1.el7 | Fixed 2021-12-16 | RHSA-2021:5179 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-postgresql12-postgresql-0:12.9-1.el7 | Fixed 2021-12-16 | RHSA-2021:5197 |
| Red Hat build of Debezium 1 | postgresql | Not affected | |
| Red Hat build of Quarkus | postgresql | Not affected | |
| Red Hat Decision Manager 7 | postgresql | Not affected | |
| Red Hat Enterprise Linux 5 | postgresql | Out of support scope | |
| Red Hat Enterprise Linux 6 | postgresql | Out of support scope | |
| Red Hat Enterprise Linux 7 | postgresql | Out of support scope | |
| Red Hat Enterprise Linux 8 | postgresql:10/postgresql | Not affected | |
| Red Hat Enterprise Linux 8 | postgresql:12/postgresql | Not affected | |
| Red Hat Enterprise Linux 8 | postgresql:13/postgresql | Not affected | |
| Red Hat Enterprise Linux 8 | postgresql:9.6/postgresql | Not affected | |
| Red Hat Enterprise Linux 9 | libpq | Not affected | |
| Red Hat Enterprise Linux 9 | postgresql | Not affected | |
| Red Hat Fuse 7 | postgresql | Not affected | |
| Red Hat Integration Camel K 1 | postgresql | Not affected | |
| Red Hat Integration Camel Quarkus 1 | postgresql | Not affected | |
| Red Hat Integration Service Registry | postgresql | Not affected | |
| Red Hat JBoss Fuse 6 | postgresql | Not affected | |
| 3 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23222.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-522 (13).