CVSS 3.1
4.9 mediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HMedium (4.9). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HExplain CVE-2021-20266 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20266?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20266?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-20266 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 |
|---|---|
| rpm:rpm | before 4.16.1.3 |
| fedoraproject:fedora | 33 |
| fedoraproject:fedora | 34 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | rpm | 4.16.1.2+dfsg1-1 | DEBIAN-CVE-2021-20266 |
| Ubuntu | Pro:16.04:LTS | rpm | 4.12.0.1+dfsg1-3ubuntu0.1~esm1 | USN-5273-1 |
| Ubuntu | Pro:18.04:LTS | rpm | 4.14.1+dfsg1-2ubuntu0.1~esm1 | UBUNTU-CVE-2021-20266 USN-5273-1 |
| Ubuntu | Pro:20.04:LTS | rpm | 4.14.2.1+dfsg1-1ubuntu0.1~esm1 | UBUNTU-CVE-2021-20266 USN-5273-1 |
| Red Hat | enterprise_linux:8::appstream | rpm-build, rpm-debuginfo, rpm-debugsource and 13 more | 0:4.14.3-19.el8 | RHSA-2021:4489 |
| Red Hat | enterprise_linux:8::baseos | rpm, rpm-cron, rpm-libs and 24 more | 0:4.14.3-19.el8 | RHSA-2021:4489 |
| SUSE | Linux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Development Tools 15 SP2 and 2 more | rpm | 4.14.1-22.4.2 | SUSE-SU-2021:3444-1 |
| SUSE | Linux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2 | python-rpm | 4.14.1-22.4.1 | SUSE-SU-2021:3444-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP3 | rpm, python-rpm | 4.14.3-37.2 | SUSE-SU-2021:2682-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP3, Manager Proxy Module 4.2, Manager Server Module 4.2 | rpm | 4.14.3-37.2 | SUSE-SU-2021:2682-1 |
| SUSE | Linux Enterprise Module for Public Cloud 15 SP2 | rpm-ndb | 4.14.1-22.4.2 | SUSE-SU-2021:3444-1 |
| SUSE | Linux Enterprise Module for Public Cloud 15 SP3 | rpm-ndb | 4.14.3-37.2 | SUSE-SU-2021:2682-1 |
| SUSE | Linux Enterprise Module for Python 2 15 SP3 | python-rpm | 4.14.3-37.2 | SUSE-SU-2021:2682-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 | rpm, rpm-python, python3-rpm | 4.11.2-16.26.1 | SUSE-SU-2022:3939-1 |
| SUSE | Linux Enterprise Software Development Kit 12 SP5 | rpm | 4.11.2-16.26.1 | SUSE-SU-2022:3939-1 |
| openSUSE | Leap 15.2 | rpm, python-rpm | 4.14.1-lp152.18.3.1 | openSUSE-SU-2021:1366-1 |
| openSUSE | Leap 15.3 | rpm, rpm-ndb, python-rpm | 4.14.3-37.2 | openSUSE-SU-2021:2682-1 |
| AlmaLinux | 8 | rpm-build, rpm-plugin-fapolicyd | 4.14.3-19.el8 | ALSA-2021:4489 |
| Rocky Linux | 8 | rpm | 0:4.14.3-19.el8 | RLSA-2021:4489 |
| Alpine | v3.13, v3.14, v3.15 and 9 more | rpm | 4.16.1.3-r0 | ALPINE-CVE-2021-20266 |
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. 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 order to exploit this flaw with rpm tooling as shipped in Red Hat Enterprise Linux, an attacker would need to already have root access to modify the rpm database.
If using the headerCheck() and headerImport() APIs in your software, do not run them on headers from untrusted sources.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | rpm-0:4.14.3-19.el8 | Fixed 2021-11-09 | RHSA-2021:4489 |
| Red Hat Enterprise Linux 6 | rpm | Out of support scope | |
| Red Hat Enterprise Linux 7 | rpm | Out of support scope | |
| Red Hat Enterprise Linux 9 | rpm | Not affected |
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-20266.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.