CVE-2021-3521

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-3521
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3521.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-3521
Downstream
Related
Published
2022-08-22T15:15:13Z
Modified
2025-10-21T06:25:15.315441Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/rpm-software-management/rpm

Affected ranges

Type
GIT
Repo
https://github.com/rpm-software-management/rpm
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

rpm-4.*

rpm-4.11.0-alpha
rpm-4.12.0-alpha
rpm-4.13.0-alpha
rpm-4.15.0-alpha
rpm-4.16.0-alpha
rpm-4.17.0-alpha
rpm-4.4-release
rpm-4.4.1-release
rpm-4.4.2-release
rpm-4.4.2.1-rc1
rpm-4.4.2.1-rc2
rpm-4.8.0-beta1

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/rpm-software-management/rpm/commit/bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "pgpPrtParams",
            "file": "rpmio/rpmpgp.c"
        },
        "id": "CVE-2021-3521-1b22a8d2",
        "digest": {
            "length": 659.0,
            "function_hash": "18654273305198649316022720889848845896"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://github.com/rpm-software-management/rpm/commit/bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "rpmio/rpmpgp.c"
        },
        "id": "CVE-2021-3521-90ac71c4",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "325657210960615786739662468727726783728",
                "47966702523371507377456852632785271121",
                "286582732352002262594291296974169753865",
                "243400125162798425667049834128213580613",
                "30470611932639285270864352069246258574",
                "140875639017840852186472000920409082203",
                "2739903640851213372965136005929193770",
                "188132858349495013317798678832081699576",
                "21824340141858704143146196991643603727",
                "327952600745592697609939665880429161880",
                "177739460209160338638959583986356832234",
                "9760461544719636487642646010533693577",
                "333755453979000132171842763600788248828",
                "324053966043140758184974260764133642837",
                "76221507660810429306612785440620145262",
                "253956102150773347137358032263941334148",
                "305697163669159537817579591078188701859",
                "168837948605805606179619176266676225610",
                "74756031877764481852243116981129217731",
                "183033272472309697173750659737462324169",
                "42532390978424269323515130084378756089",
                "292317833728984177663434754652460997784",
                "203463901913259240527670018038049327403",
                "56132449625005425667102912863012667664",
                "243203295963620474767941973737829719771",
                "182451840736725389196940354722035131065",
                "73382196176451003486287976697089347639",
                "71127595563261775299838504182410406690"
            ]
        },
        "signature_type": "Line"
    }
]