{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-3521 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-3521 is a medium-severity vulnerability in RPM, published on 22 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-3521 and fix it if it is affected.\n\nWhat it is: CVE-2021-3521 is a medium-severity vulnerability in RPM, published on 22 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-3521 in the wild and no public exploit code.\n\nAffected product: RPM. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-3521/ (Markdown: https://insights.sbomify.com/CVE-2021-3521/index.md)","id":"CVE-2021-3521","markdown":"https://insights.sbomify.com/CVE-2021-3521/index.md","name":"CVE-2021-3521","record":{"aliases":["ALSA-2022:0368","AZL-10637","CLSA-2022-1644869406","CLSA-2026-1777539108","CLSA-2026-1777539405","CLSA-2026-1777545003","DEBIAN-CVE-2021-3521","GHSA-pr6x-p264-jrpq","MGASA-2022-0321","OESA-2021-1431","RHSA-2022:0254","RHSA-2022:0368","RHSA-2022:0634","RLSA-2022:0368","SUSE-SU-2024:1557-1","SUSE-SU-2024:1557-2","SUSE-SU-2024:1557-3","UBUNTU-CVE-2021-3521","openSUSE-SU-2024:12245-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["data_modify","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"RPM package manager","requires_auth":"none","summary":"RPM fails to verify OpenPGP subkey binding signatures, allowing attackers to bypass signature checks and install malicious packages if they compromise repositories or keys.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"rpm","vendor":"rpm"}],"cvss":{"score":4.7,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"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.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:rhel_eus:8.2::appstream","Red Hat:rhel_eus:8.2::baseos","Red Hat:rhel_eus:8.4::appstream","Red Hat:rhel_eus:8.4::baseos","Rocky Linux:8","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP5","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 15 SP6","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Manager Proxy 4.3","SUSE:Manager Proxy Module 4.3","SUSE:Manager Server 4.3","SUSE:Manager Server Module 4.3","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Leap Micro 5.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Security feature bypass in RPM","id":"CVE-2021-3521","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"security_feature_bypass","year":"2021"},"n_packages":173,"n_references":5,"next":{"headline":"Memory corruption in GStreamer","id":"CVE-2021-3522"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-build","purl":"pkg:rpm/almalinux/rpm-build","source":"ALSA-2022:0368"},{"ecosystem":"AlmaLinux:8","fixed":["4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-fapolicyd","purl":"pkg:rpm/almalinux/rpm-plugin-fapolicyd","source":"ALSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"python3-rpm-debuginfo","purl":"pkg:rpm/redhat/python3-rpm-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-build","purl":"pkg:rpm/redhat/rpm-build","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-build-debuginfo","purl":"pkg:rpm/redhat/rpm-build-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-build-libs-debuginfo","purl":"pkg:rpm/redhat/rpm-build-libs-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-debuginfo","purl":"pkg:rpm/redhat/rpm-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-debugsource","purl":"pkg:rpm/redhat/rpm-debugsource","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-devel-debuginfo","purl":"pkg:rpm/redhat/rpm-devel-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-libs-debuginfo","purl":"pkg:rpm/redhat/rpm-libs-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-fapolicyd","purl":"pkg:rpm/redhat/rpm-plugin-fapolicyd","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-fapolicyd-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-fapolicyd-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-ima-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-ima-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-prioreset-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-prioreset-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-selinux-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-selinux-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-syslog-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-syslog-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-systemd-inhibit-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-systemd-inhibit-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-sign-debuginfo","purl":"pkg:rpm/redhat/rpm-sign-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"python3-rpm","purl":"pkg:rpm/redhat/python3-rpm","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"python3-rpm-debuginfo","purl":"pkg:rpm/redhat/python3-rpm-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm","purl":"pkg:rpm/redhat/rpm","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-apidocs","purl":"pkg:rpm/redhat/rpm-apidocs","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-build-debuginfo","purl":"pkg:rpm/redhat/rpm-build-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-build-libs","purl":"pkg:rpm/redhat/rpm-build-libs","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-build-libs-debuginfo","purl":"pkg:rpm/redhat/rpm-build-libs-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-cron","purl":"pkg:rpm/redhat/rpm-cron","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-debuginfo","purl":"pkg:rpm/redhat/rpm-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-debugsource","purl":"pkg:rpm/redhat/rpm-debugsource","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-devel","purl":"pkg:rpm/redhat/rpm-devel","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-devel-debuginfo","purl":"pkg:rpm/redhat/rpm-devel-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-libs","purl":"pkg:rpm/redhat/rpm-libs","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-libs-debuginfo","purl":"pkg:rpm/redhat/rpm-libs-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-fapolicyd-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-fapolicyd-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-ima","purl":"pkg:rpm/redhat/rpm-plugin-ima","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-ima-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-ima-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-prioreset","purl":"pkg:rpm/redhat/rpm-plugin-prioreset","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-prioreset-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-prioreset-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-selinux","purl":"pkg:rpm/redhat/rpm-plugin-selinux","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-selinux-debuginfo","purl":"pkg:rpm/redhat/rpm-plugin-selinux-debuginfo","source":"RHSA-2022:0368"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:4.14.3-19.el8_5.2"],"introduced":["0"],"last_affected":[],"package":"rpm-plugin-syslog","purl":"pkg:rpm/redhat/rpm-plugin-syslog","source":"RHSA-2022:0368"}],"prev":{"headline":"lz4-sys vulnerable to memory corruption via issue in liblz4","id":"CVE-2021-3520"},"products":["RPM"],"published":"2022-08-22","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2014-8118","kev_date_added":null,"published":"2014-12-16"},{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2011-3378","kev_date_added":null,"published":"2011-12-24"},{"cvss_score":7.8,"headline":"Path traversal in rpm","id":"CVE-2017-7501","kev_date_added":null,"published":"2017-11-22"},{"cvss_score":7.3,"headline":"Path traversal in rpm","id":"CVE-2017-7500","kev_date_added":null,"published":"2018-08-13"},{"cvss_score":7.2,"headline":"Race condition in n/a","id":"CVE-2005-4889","kev_date_added":null,"published":"2010-06-08"},{"cvss_score":7.2,"headline":"Race condition in n/a","id":"CVE-2010-2059","kev_date_added":null,"published":"2010-06-08"},{"cvss_score":7.2,"headline":"Privilege escalation in n/a","id":"CVE-2010-2198","kev_date_added":null,"published":"2010-06-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"RPM fails to verify OpenPGP subkey binding signatures, allowing attackers to bypass signature checks and install malicious packages if they compromise repositories or keys.","url":"https://insights.sbomify.com/CVE-2021-3521/"}