Vulnerability · Published Aug 22, 2022 · Assigned by redhat
CVE-2021-3521
Medium 4.7
In plain English
A medium-severity security flaw in RPM. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | rpm-build | 4.14.3-19.el8_5.2 | ALSA-2022:0368 |
| AlmaLinux:8 | rpm-plugin-fapolicyd | 4.14.3-19.el8_5.2 | ALSA-2022:0368 |
| Alpine:v3.20 | rpm | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine:v3.21 | rpm | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine:v3.22 | rpm | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine:v3.23 | rpm | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Alpine:v3.24 | rpm | 4.17.1-r0 | ALPINE-CVE-2021-3521 |
| Debian:12 | rpm | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-3521 |
| Debian:13 | rpm | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-3521 |
| Debian:14 | rpm | 4.18.0+dfsg-1 | DEBIAN-CVE-2021-3521 |
| Rocky Linux:8 | rpm | 0:4.14.3-19.el8_5.2 | RLSA-2022:0368 |
| Ubuntu:22.04:LTS | rpm | no fix listed | UBUNTU-CVE-2021-3521 |
| Ubuntu:24.04:LTS | rpm | no fix listed | UBUNTU-CVE-2021-3521 |
| Ubuntu:25.10 | rpm | no fix listed | UBUNTU-CVE-2021-3521 |
| Ubuntu:26.04:LTS | rpm | no fix listed | UBUNTU-CVE-2021-3521 |
| Ubuntu:26.10 | rpm | no fix listed | UBUNTU-CVE-2021-3521 |
Affected products (as reported)
Weakness: CWE-347