CVEfocus › CVE database › CVE-2021-3521

CVE-2021-3521

EPSS 0.3% (higher than 18% of CVEs)Published 2022-08-22Updated 2024-08-03Assigner: redhat

There is a flaw in RPM's signature functionality. OpenPGP subkeys are associated with a primary key via a "binding signature." RPM does not check the binding signature of subkeys prior to importing them. If an attacker is able to add or socially engineer another party to add a malicious subkey to a legitimate public key, RPM could wrongly trust a malicious signature. The greatest impact of this flaw is to data integrity. To exploit this flaw, an attacker must either compromise an RPM repository or convince an administrator to install an untrusted RPM or public key. It is strongly recommended to only use RPMs and public keys from trusted sources.

CWE-347

What to do

Fixed builds are available from AlmaLinux, 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

29Fixed
3Fix pending
3Under investigation
20Will not fix
16Not 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.10rpmFix pendingUBUNTU-CVE-2021-3521
Ubuntu 26.04rpmUnder investigationUBUNTU-CVE-2021-3521
Ubuntu 25.10rpmWill not fix
Only debugedit and librpmio9 binary packages are in main, and triaged with view to how they are used in the build process as described in…
UBUNTU-CVE-2021-3521
Ubuntu 24.04rpmUnder investigationUBUNTU-CVE-2021-3521
Ubuntu 22.04rpmUnder investigationUBUNTU-CVE-2021-3521
Ubuntu 20.04rpmFix pendingUBUNTU-CVE-2021-3521
Ubuntu 18.04rpmFix pendingUBUNTU-CVE-2021-3521
Ubuntu 16.04rpmWill not fix
Only debugedit and librpmio9 binary packages are in main, and triaged with view to how they are used in the build process as described in…
UBUNTU-CVE-2021-3521
Ubuntu 14.04rpmWill not fix
Only debugedit and librpmio9 binary packages are in main, and triaged with view to how they are used in the build process as described in…
UBUNTU-CVE-2021-3521
Debian 14rpmFixed4.18.0+dfsg-1DEBIAN-CVE-2021-3521
Debian 13rpmFixed4.18.0+dfsg-1DEBIAN-CVE-2021-3521
Debian 12rpmFixed4.18.0+dfsg-1DEBIAN-CVE-2021-3521
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-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpmFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-apidocsFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-buildFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-build-libsFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-cronFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-develFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-libsFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-plugin-fapolicydFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-plugin-imaFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-plugin-prioresetFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-plugin-selinuxFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-plugin-syslogFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-plugin-systemd-inhibitFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 8rpm-signFixed0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hat Enterprise Linux 7rpmWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-apidocsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-buildWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-build-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-cronWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-plugin-systemd-inhibitWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-signWill not fix
Out of support scope
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
AlmaLinux 8rpm-buildFixed4.14.3-19.el8_5.2ALSA-2022:0368
AlmaLinux 8rpm-plugin-fapolicydFixed4.14.3-19.el8_5.2ALSA-2022:0368
Rocky Linux 8rpmFixed0:4.14.3-19.el8_5.2RLSA-2022:0368
Alpine Linux 3.24rpmFixed4.17.1-r0ALPINE-CVE-2021-3521
Alpine Linux 3.23rpmFixed4.17.1-r0ALPINE-CVE-2021-3521
Alpine Linux 3.22rpmFixed4.17.1-r0ALPINE-CVE-2021-3521
Alpine Linux 3.21rpmFixed4.17.1-r0ALPINE-CVE-2021-3521
Alpine Linux 3.20rpmFixed4.17.1-r0ALPINE-CVE-2021-3521
Alpine Linux 3.19rpmFixed4.17.1-r0ALPINE-CVE-2021-3521
Alpine Linux 3.18rpmFixed4.17.1-r0ALPINE-CVE-2021-3521
Alpine Linux 3.17rpmFixed4.17.1-r0ALPINE-CVE-2021-3521

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.