cve.bz

CVE-2021-3521 rpm rpm

4.7 mediumEPSS 0.3%Fix available

Medium (4.7) in rpm rpm. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.7 medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-347 Improper Verification of Cryptographic Signature
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3521 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3521?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3521?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3521 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rpm:rpmbefore 4.17.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rpm4.18.0+dfsg-1DEBIAN-CVE-2021-3521
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 6 morerpmno fix listedUBUNTU-CVE-2021-3521
Red Hatenterprise_linux:8::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 13 more0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hatenterprise_linux:8::baseosrpm, rpm-cron, rpm-libs and 24 more0:4.14.3-19.el8_5.2RHSA-2022:0368
Red Hatrhel_eus:8.2::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 11 more0:4.14.2-40.el8_2RHSA-2022:0634
Red Hatrhel_eus:8.2::baseosrpm, rpm-cron, rpm-libs and 23 more0:4.14.2-40.el8_2RHSA-2022:0634
Red Hatrhel_eus:8.4::appstreamrpm-build, rpm-debuginfo, rpm-debugsource and 13 more0:4.14.3-14.el8_4.2RHSA-2022:0254
Red Hatrhel_eus:8.4::baseosrpm, rpm-cron, rpm-libs and 24 more0:4.14.3-14.el8_4.2RHSA-2022:0254
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Basesystem 15 SP5 and 4 morerpm, python-rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-1
SUSELinux Enterprise Micro 5.4, Linux Enterprise Micro 5.5rpm, rpm-ndb, python-rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-1
SUSELinux Enterprise Micro 5.5rpm, rpm-ndb, python-rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-3
SUSELinux Enterprise Module for Basesystem 15 SP6rpm, python-rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-2
SUSELinux Enterprise Module for Development Tools 15 SP5, Manager Proxy Module 4.3, Manager Server Module 4.3rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-1
SUSELinux Enterprise Module for Development Tools 15 SP6rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-2
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5rpm-ndb4.14.3-150400.59.16.1SUSE-SU-2024:1557-1
SUSELinux Enterprise Module for Public Cloud 15 SP6rpm-ndb4.14.3-150400.59.16.1SUSE-SU-2024:1557-2
SUSELinux Enterprise Module for Python 3 15 SP5python-rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-1
SUSELinux Enterprise Module for Python 3 15 SP6python-rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-2
openSUSELeap 15.5, Leap Micro 5.4rpm, rpm-ndb, python-rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-1
openSUSELeap 15.6rpm, rpm-ndb, python-rpm4.14.3-150400.59.16.1SUSE-SU-2024:1557-2
openSUSETumbleweedrpm4.17.1-1.1openSUSE-SU-2024:12245-1
AlmaLinux8rpm-build, rpm-plugin-fapolicyd4.14.3-19.el8_5.2ALSA-2022:0368
Rocky Linux8rpm0:4.14.3-19.el8_5.2RLSA-2022:0368
Alpinev3.17, v3.18, v3.19 and 5 morerpm4.17.1-r0ALPINE-CVE-2021-3521
Azure Linux2rpm4.18.0-1AZL-10637

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8rpm-0:4.14.3-19.el8_5.2Fixed 2022-02-01RHSA-2022:0368
Red Hat Enterprise Linux 8.2 Extended Update Supportrpm-0:4.14.2-40.el8_2Fixed 2022-02-22RHSA-2022:0634
Red Hat Enterprise Linux 8.4 Extended Update Supportrpm-0:4.14.3-14.el8_4.2Fixed 2022-01-25RHSA-2022:0254
Red Hat Enterprise Linux 6rpmOut of support scope
Red Hat Enterprise Linux 7rpmOut of support scope
Red Hat Enterprise Linux 9rpmNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3521.

Attack patterns (CAPEC)

  • CAPEC-463 Padding Oracle Crypto Attack Severity: High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON