cve.bz

CVE-2021-20271

7.0 highEPSS 0.8%Fix available

High (7.0). EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in RPM's signature check functionality when reading a package file. This flaw allows an attacker who can convince a victim to install a seemingly verifiable package, whose signature header was modified, to cause RPM database corruption and execute code. The highest threat from this vulnerability is to data integrity, confidentiality, and system availability.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-345 Insufficient Verification of Data Authenticity
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20271 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20271?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20271?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-20271 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rpm:rpmfrom 4.15.0 before 4.15.1.3
rpm:rpmfrom 4.16.0 before 4.16.1.3
rpm:rpm4.15.0:alpha
rpm:rpm4.15.0:beta1
rpm:rpm4.15.0:rc1
rpm:rpm4.16.0:alpha
rpm:rpm4.16.0:beta2
rpm:rpm4.16.0:beta3
rpm:rpm4.16.0:rc1
redhat:enterprise_linux8.0
fedoraproject:fedora32
fedoraproject:fedora33
fedoraproject:fedora34
starwindsoftware:starwind_virtual_sanv8:build14398

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rpm4.16.1.2+dfsg1-1DEBIAN-CVE-2021-20271
UbuntuPro:14.04:LTSrpmno fix listedUBUNTU-CVE-2021-20271
UbuntuPro:16.04:LTSrpm4.12.0.1+dfsg1-3ubuntu0.1~esm1UBUNTU-CVE-2021-20271 USN-5273-1
UbuntuPro:18.04:LTSrpm4.14.1+dfsg1-2ubuntu0.1~esm1UBUNTU-CVE-2021-20271 USN-5273-1
UbuntuPro:20.04:LTSrpm4.14.2.1+dfsg1-1ubuntu0.1~esm1UBUNTU-CVE-2021-20271 USN-5273-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationrpm, rpm-cron, rpm-libs and 8 more0:4.11.3-48.el7_9RHSA-2021:4785
Red Hatenterprise_linux:7::computenoderpm-cron, rpm-sign, rpm-devel and 3 more0:4.11.3-48.el7_9RHSA-2021:4785
Red Hatenterprise_linux:8::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 13 more0:4.14.3-14.el8_4RHSA-2021:2574
Red Hatenterprise_linux:8::baseosrpm, rpm-cron, rpm-libs and 24 more0:4.14.3-14.el8_4RHSA-2021:2574
Red Hatrhel_aus:7.6::server, rhel_e4s:7.6::server, rhel_tus:7.6::serverrpm, rpm-cron, rpm-libs and 8 more0:4.11.3-35.el7_6.2RHSA-2021:4771
Red Hatrhel_aus:7.7::server, rhel_e4s:7.7::server, rhel_tus:7.7::serverrpm, rpm-cron, rpm-libs and 8 more0:4.11.3-40.el7_7.1RHSA-2021:4975
Red Hatrhel_eus:8.2::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 11 more0:4.14.2-38.el8_2RHSA-2021:2791
Red Hatrhel_eus:8.2::baseosrpm, rpm-cron, rpm-libs and 23 more0:4.14.2-38.el8_2RHSA-2021:2791
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Development Tools 15 SP2 and 2 morerpm4.14.1-22.4.2SUSE-SU-2021:3444-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2python-rpm4.14.1-22.4.1SUSE-SU-2021:3444-1
SUSELinux Enterprise Module for Basesystem 15 SP3rpm, python-rpm4.14.3-37.2SUSE-SU-2021:2682-1
SUSELinux Enterprise Module for Development Tools 15 SP3, Manager Proxy Module 4.2, Manager Server Module 4.2rpm4.14.3-37.2SUSE-SU-2021:2682-1
SUSELinux Enterprise Module for Public Cloud 15 SP2rpm-ndb4.14.1-22.4.2SUSE-SU-2021:3444-1
SUSELinux Enterprise Module for Public Cloud 15 SP3rpm-ndb4.14.3-37.2SUSE-SU-2021:2682-1
SUSELinux Enterprise Module for Python 2 15 SP3python-rpm4.14.3-37.2SUSE-SU-2021:2682-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5rpm, rpm-python, python3-rpm4.11.2-16.26.1SUSE-SU-2022:3939-1
SUSELinux Enterprise Software Development Kit 12 SP5rpm4.11.2-16.26.1SUSE-SU-2022:3939-1
openSUSELeap 15.2rpm, python-rpm4.14.1-lp152.18.3.1openSUSE-SU-2021:1366-1
openSUSELeap 15.3libdnf0.62.0-5.3.1openSUSE-SU-2021:2685-1
openSUSELeap 15.3rpm, rpm-ndb, python-rpm4.14.3-37.2openSUSE-SU-2021:2682-1
Rocky Linux8rpm0:4.14.3-14.el8_4RLSA-2021:2574
Alpinev3.13, v3.14, v3.15 and 9 morerpm4.16.1.3-r0ALPINE-CVE-2021-20271

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; 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

Red Hat rates this Moderate.

Red Hat's statement

To exploit this flaw, an attacker must either compromise an RPM repository or convince an administrator to install an untrusted RPM. It is strongly recommended to only use RPMs from trusted repositories.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7rpm-0:4.11.3-48.el7_9Fixed 2021-11-23RHSA-2021:4785
Red Hat Enterprise Linux 7.6 Advanced Update Supportrpm-0:4.11.3-35.el7_6.2Fixed 2021-11-23RHSA-2021:4771
Red Hat Enterprise Linux 7.6 Telco Extended Update Supportrpm-0:4.11.3-35.el7_6.2Fixed 2021-11-23RHSA-2021:4771
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionsrpm-0:4.11.3-35.el7_6.2Fixed 2021-11-23RHSA-2021:4771
Red Hat Enterprise Linux 7.7 Advanced Update Supportrpm-0:4.11.3-40.el7_7.1Fixed 2021-12-07RHSA-2021:4975
Red Hat Enterprise Linux 7.7 Telco Extended Update Supportrpm-0:4.11.3-40.el7_7.1Fixed 2021-12-07RHSA-2021:4975
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionsrpm-0:4.11.3-40.el7_7.1Fixed 2021-12-07RHSA-2021:4975
Red Hat Enterprise Linux 8rpm-0:4.14.3-14.el8_4Fixed 2021-06-29RHSA-2021:2574
Red Hat Enterprise Linux 8.2 Extended Update Supportrpm-0:4.14.2-38.el8_2Fixed 2021-07-20RHSA-2021:2791
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-controller-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-log-reader-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-must-gather-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-operator-bundle:v1.4.6-5Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-registry-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-rsync-transfer-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-ui-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-velero-plugin-for-aws-rhel8:v1.4.6-4Fixed 2021-07-21RHBA-2021:2854
Red Hat Migration Toolkit for Containers 1.4rhmtc/openshift-migration-velero-plugin-for-gcp-rhel8:v1.4.6-3Fixed 2021-07-21RHBA-2021:2854
Red Hat Enterprise Linux 6rpmOut of support scope
Red Hat Enterprise Linux 9rpmNot affected
4 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-20271.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-345 (12).

References

Check your stackJSON