# CVE-2021-3521: There is a flaw in RPM's signature functionality.

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2022-08-22T00:00:00.000Z
- Modified: 2026-06-17T04:05:17.293Z
- Weaknesses: CWE-347
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- RPM: Fixed in rpm-4.18.0-beta1, rpm-4.18.0-alpha2, rpm-4.18.0-alpha1 .
- rpm rpm: before 4.17.1

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1941098> (issue-tracking, patch, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2021-3521> (third-party-advisory)
- <https://github.com/rpm-software-management/rpm/pull/1795/> (patch, third-party-advisory)
- <https://github.com/rpm-software-management/rpm/commit/bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8> (patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202210-22> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-3521](https://www.cve.org/CVERecord?id=CVE-2021-3521), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3521](https://nvd.nist.gov/vuln/detail/CVE-2021-3521), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3521 · Whole record: https://cve.day/CVE-2021-3521.json · Rebuilt by cve.day 2026-11-25T22:58:07.764Z
