CVE-2021-3521
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rpm | Fix pending | UBUNTU-CVE-2021-3521 | |
| Ubuntu 26.04 | rpm | Under investigation | UBUNTU-CVE-2021-3521 | |
| Ubuntu 25.10 | rpm | Will 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.04 | rpm | Under investigation | UBUNTU-CVE-2021-3521 | |
| Ubuntu 22.04 | rpm | Under investigation | UBUNTU-CVE-2021-3521 | |
| Ubuntu 20.04 | rpm | Fix pending | UBUNTU-CVE-2021-3521 | |
| Ubuntu 18.04 | rpm | Fix pending | UBUNTU-CVE-2021-3521 | |
| Ubuntu 16.04 | rpm | Will 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.04 | rpm | Will 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 14 | rpm | Fixed | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-3521 |
| Debian 13 | rpm | Fixed | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-3521 |
| Debian 12 | rpm | Fixed | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-3521 |
| Red Hat Enterprise Linux 9 | python3-rpm | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-apidocs | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-build | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-build-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-cron | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-plugin-audit | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-plugin-fapolicyd | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-plugin-ima | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-plugin-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-plugin-syslog | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-plugin-systemd-inhibit | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-sign | Not affected | ||
| Red Hat Enterprise Linux 9 | rpm-sign-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-rpm | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-apidocs | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-build | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-build-libs | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-cron | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-devel | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-libs | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-plugin-fapolicyd | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-plugin-ima | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-plugin-prioreset | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-plugin-selinux | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-plugin-syslog | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-plugin-systemd-inhibit | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 8 | rpm-sign | Fixed | 0:4.14.3-19.el8_5.2 | RHSA-2022:0368 |
| Red Hat Enterprise Linux 7 | rpm | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-apidocs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-build | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-build-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-cron | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-plugin-systemd-inhibit | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rpm-sign | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | rpm | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | rpm-apidocs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | rpm-build | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | rpm-cron | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | rpm-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | rpm-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | rpm-python | Will not fix Out of support scope | ||
| AlmaLinux 8 | rpm-build | Fixed | 4.14.3-19.el8_5.2 | ALSA-2022:0368 |
| AlmaLinux 8 | rpm-plugin-fapolicyd | Fixed | 4.14.3-19.el8_5.2 | ALSA-2022:0368 |
| Rocky Linux 8 | rpm | Fixed | 0:4.14.3-19.el8_5.2 | RLSA-2022:0368 |
| Alpine Linux 3.24 | rpm | Fixed | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine Linux 3.23 | rpm | Fixed | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine Linux 3.22 | rpm | Fixed | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine Linux 3.21 | rpm | Fixed | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine Linux 3.20 | rpm | Fixed | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine Linux 3.19 | rpm | Fixed | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine Linux 3.18 | rpm | Fixed | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine Linux 3.17 | rpm | Fixed | 4.17.1-r0 | ALPINE-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.
- RPM: affected: Fixed in rpm-4.18.0-beta1, rpm-4.18.0-alpha2, rpm-4.18.0-alpha1 .
Vendor advisories:
- https://security.gentoo.org/glsa/202210-22 (vendor-advisory)
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1941098
- https://access.redhat.com/security/cve/CVE-2021-3521
- https://github.com/rpm-software-management/rpm/pull/1795/
- https://github.com/rpm-software-management/rpm/commit/bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8
- https://security.gentoo.org/glsa/202210-22
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.