CVEfocus › CVE database › CVE-2021-20271

CVE-2021-20271

CVSS 7.0 HighEPSS 0.8% (higher than 52% of CVEs)Published 2021-03-26Updated 2024-08-03Assigner: redhat

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.

CWE-345

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

41Fixed
4Fix pending
7Will not fix
20Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04rpmNot affected
vulnerable_code_not_present
Ubuntu 25.10rpmNot affected
vulnerable_code_not_present
Ubuntu 24.04rpmNot affected
vulnerable_code_not_present
Ubuntu 22.04rpmNot affected
vulnerable_code_not_present
Ubuntu 20.04rpmFix pending4.14.2.1+dfsg1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-20271
Ubuntu 18.04rpmFix pending4.14.1+dfsg1-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-20271
Ubuntu 16.04rpmFix pending4.12.0.1+dfsg1-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-20271
Ubuntu 14.04rpmFix pendingUBUNTU-CVE-2021-20271
Debian 14rpmFixed4.16.1.2+dfsg1-1DEBIAN-CVE-2021-20271
Debian 13rpmFixed4.16.1.2+dfsg1-1DEBIAN-CVE-2021-20271
Debian 12rpmFixed4.16.1.2+dfsg1-1DEBIAN-CVE-2021-20271
Red Hat Enterprise Linux 9python3-rpmNot affected
Red Hat Enterprise Linux 9rpmNot affected
Red Hat Enterprise Linux 9rpm-apidocsNot affected
Red Hat Enterprise Linux 9rpm-buildNot affected
Red Hat Enterprise Linux 9rpm-build-libsNot affected
Red Hat Enterprise Linux 9rpm-cronNot affected
Red Hat Enterprise Linux 9rpm-develNot affected
Red Hat Enterprise Linux 9rpm-libsNot affected
Red Hat Enterprise Linux 9rpm-plugin-auditNot affected
Red Hat Enterprise Linux 9rpm-plugin-fapolicydNot affected
Red Hat Enterprise Linux 9rpm-plugin-imaNot affected
Red Hat Enterprise Linux 9rpm-plugin-selinuxNot affected
Red Hat Enterprise Linux 9rpm-plugin-syslogNot affected
Red Hat Enterprise Linux 9rpm-plugin-systemd-inhibitNot affected
Red Hat Enterprise Linux 9rpm-signNot affected
Red Hat Enterprise Linux 9rpm-sign-libsNot affected
Red Hat Enterprise Linux 8python3-rpmFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpmFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-apidocsFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-buildFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-build-libsFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-cronFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-develFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-libsFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-plugin-fapolicydFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-plugin-imaFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-plugin-prioresetFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-plugin-selinuxFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-plugin-syslogFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-plugin-systemd-inhibitFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 8rpm-signFixed0:4.14.3-14.el8_4RHSA-2021:2574
Red Hat Enterprise Linux 7rpmFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-apidocsFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-buildFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-build-libsFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-cronFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-develFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-libsFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-plugin-systemd-inhibitFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-pythonFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 7rpm-signFixed0:4.11.3-48.el7_9RHSA-2021:4785
Red Hat Enterprise Linux 6rpmWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-apidocsWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-buildWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-cronWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-pythonWill not fix
Out of support scope
Rocky Linux 8rpmFixed0:4.14.3-14.el8_4RLSA-2021:2574
Alpine Linux 3.24rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.23rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.22rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.21rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.20rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.19rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.18rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.17rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.16rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.15rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.14rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271
Alpine Linux 3.13rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20271

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.