Skip to content
Noroxi
NVD / CVE Program· CNA redhat

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

MediumCVSS 4.7 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 18/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.32% (FIRST EPSS).
  • Someone with local access to the system can trigger it. No account or password is required. A user must open a link or visit a page. Special conditions such as timing or configuration are required.
  • Fixed version: rpm-build (AlmaLinux:8) 4.14.3-19.el8_5.2; rpm-plugin-fapolicyd (AlmaLinux:8) 4.14.3-19.el8_5.2; rpm (Alpine:v3.17) 4.17.1-r0.
  • Mentioned 5 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to rpm-build (AlmaLinux:8) 4.14.3-19.el8_5.2; rpm-plugin-fapolicyd (AlmaLinux:8) 4.14.3-19.el8_5.2; rpm (Alpine:v3.17) 4.17.1-r0 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Aug 22, 2022
Updated
Jun 17, 2026
EPSS
0.3% · 25th percentile

Report tools

JSON

Action score

18

Monitor

Low priority for now.

CVSS
18 / 40 · 4.7 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-3521

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
rpmrpm

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • n/a RPM

    • Fixed in rpm-4.18.0-beta1, rpm-4.18.0-alpha2, rpm-4.18.0-alpha1 .affected

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • rpm rpmbefore 4.17.1

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8rpm-buildbefore 4.14.3-19.el8_5.24.14.3-19.el8_5.2
AlmaLinux:8rpm-plugin-fapolicydbefore 4.14.3-19.el8_5.24.14.3-19.el8_5.2
Alpine:v3.17rpmbefore 4.17.1-r04.17.1-r0
Debian:12rpmbefore 4.18.0+dfsg-14.18.0+dfsg-1
openSUSE:Leap Micro 5.4python-rpmbefore 4.14.3-150400.59.16.14.14.3-150400.59.16.1
openSUSE:Leap Micro 5.4rpmbefore 4.14.3-150400.59.16.14.14.3-150400.59.16.1
openSUSE:Leap Micro 5.4rpm-ndbbefore 4.14.3-150400.59.16.14.14.3-150400.59.16.1
openSUSE:Tumbleweedrpmbefore 4.17.1-1.14.17.1-1.1
Red Hat:enterprise_linux:8::appstreampython3-rpm-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-buildbefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-build-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-build-libs-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-debugsourcebefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-devel-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-libs-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-plugin-fapolicydbefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-plugin-fapolicyd-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-plugin-ima-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-plugin-prioreset-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-plugin-selinux-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-plugin-syslog-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-plugin-systemd-inhibit-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2
Red Hat:enterprise_linux:8::appstreamrpm-sign-debuginfobefore 0:4.14.3-19.el8_5.20:4.14.3-19.el8_5.2

+73

Same product

rpm: all records

Other highest-scoring records for the same primary product.

  • CVE-2014-8118Integer overflow in RPM 4.12 and earlier allows remote attackers to execute arbitrary code via a crafted CPIO header in the payload section…
    42Plan
  • CVE-2011-3378RPM 4.4.x through 4.9.x, probably before 4.9.1.2, allows remote attackers to cause a denial of service (memory corruption) and possibly…
    39Monitor
  • CVE-2013-6435Race condition in RPM 4.11.1 and earlier allows remote attackers to execute arbitrary code via a crafted RPM file whose installation…
    32Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2021-20266Apr 30, 2021 · A flaw was found in RPM's hdrblobInit() in lib/header.c.
    19Monitor
  • ← EarlierCVE-2021-3421May 19, 2021 · A flaw was found in the RPM package in the read functionality.
    22Monitor
  • Later →CVE-2021-35937Aug 25, 2022 · A race condition vulnerability was found in rpm.
    25Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:rpm-build4.14.3-19.el8_5.2 · AlmaLinux:8Package registry (OSV)
almalinux:rpm-plugin-fapolicyd4.14.3-19.el8_5.2 · AlmaLinux:8Package registry (OSV)
alpine:rpm4.17.1-r0 · Alpine:v3.17Package registry (OSV)
debian:rpm4.18.0+dfsg-1 · Debian:12Package registry (OSV)
opensuse:python-rpm4.14.3-150400.59.16.1 · openSUSE:Leap Micro 5.4Package registry (OSV)
opensuse:rpm4.14.3-150400.59.16.1 · openSUSE:Leap Micro 5.4Package registry (OSV)
opensuse:rpm-ndb4.14.3-150400.59.16.1 · openSUSE:Leap Micro 5.4Package registry (OSV)
red hat:python3-rpm-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-build0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-build-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-build-libs-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-debugsource0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-devel-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-libs-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-plugin-fapolicyd0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-plugin-fapolicyd-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-plugin-ima-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
red hat:rpm-plugin-prioreset-debuginfo0:4.14.3-14.el8_4.2 · Red Hat:rhel_eus:8.4::appstreamPackage registry (OSV)
rocky linux:rpm0:4.14.3-19.el8_5.2 · Rocky Linux:8Package registry (OSV)
suse:python-rpm4.14.3-150400.59.16.1 · SUSE:Linux Enterprise Micro 5.4Package registry (OSV)
suse:rpm4.14.3-150400.59.16.1 · SUSE:Linux Enterprise Micro 5.4Package registry (OSV)
suse:rpm-ndb4.14.3-150400.59.16.1 · SUSE:Linux Enterprise Micro 5.4Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
none
Integrity
high · data or configuration can be modified
Availability
none
Attack vector
Local
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
None
Integrity impact
High
Availability impact
None

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

nvd-primary

Root cause

The verifier takes the algorithm to verify with from the token’s own header. Untrusted data ends up deciding its own verification rule.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const claims = jwt.verify(token, publicKey);

Fixed

ts
const claims = jwt.verify(token, publicKey, {  algorithms: ["RS256"],  issuer: "https://id.example.com",  audience: "portal",});

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

References

All records