Medium severity · published Aug 22, 2022
CVE-2021-3521
There is a flaw in RPM's signature functionality
4.7
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Attack vector
Local
Complexity
High
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 25% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RP
Rpm · Rpm
before 4.17.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3521
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-3521
Third Party Advisory
https://access.redhat.com/security/cve/CVE-2021-3521
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=1941098
Patch
https://github.com/rpm-software-management/rpm/commit/bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8
Patch
https://github.com/rpm-software-management/rpm/pull/1795/
Third Party Advisory
https://security.gentoo.org/glsa/202210-22
More from Rpm
7.8
CVE-2017-7500
It was found that rpm did not properly handle RPM installations when a destination path was a symbolic link to a directory, possibly changing ownership and permissions of an…
7.8
CVE-2017-7501
It was found that versions of rpm before 4.13.0.2 use temporary files with predictable names when installing an RPM
7.0
CVE-2021-20271
A flaw was found in RPM's signature check functionality when reading a package file
6.7
CVE-2021-35939
It was found that the fix for CVE-2017-7500 and CVE-2017-7501 was incomplete: the check was only implemented for the parent directory of the file to be created
6.7
CVE-2021-35938
A symbolic link issue was found in rpm
