{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-3981 in the wild and no public exploit code.","fix":"No fix published yet.","what":"CVE-2021-3981 is a low-severity vulnerability in Fedoraproject Fedora, published on 8 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3981 and fix it if it is affected.\n\nWhat it is: CVE-2021-3981 is a low-severity vulnerability in Fedoraproject Fedora, published on 8 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-3981 in the wild and no public exploit code.\n\nAffected product: Fedoraproject Fedora. 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-3981/ (Markdown: https://insights.sbomify.com/CVE-2021-3981/index.md)","id":"CVE-2021-3981","markdown":"https://insights.sbomify.com/CVE-2021-3981/index.md","name":"CVE-2021-3981","record":{"aliases":["ALSA-2022:2110","AZL-34786","AZL-8937","DEBIAN-CVE-2021-3981","GHSA-6hfm-rxpf-979r","OESA-2022-1597","RHSA-2022:2110","RLSA-2022:2110","UBUNTU-CVE-2021-3981","openSUSE-SU-2024:11700-1"],"analysis":{"component_type":"operating_system","fix_type":"no_fix_stated","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GRUB bootloader","requires_auth":"low_privilege","summary":"Local attackers can read GRUB configuration files to obtain encrypted passwords due to incorrect file permissions.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"grub2","vendor":"gnu"}],"cvss":{"score":3.3,"severity":"low","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"description":"A flaw in grub2 was found where its configuration file, known as grub.cfg, is being created with the wrong permission set allowing non privileged users to read its content. This represents a low severity confidentiality issue, as those users can eventually read any encrypted passwords present in grub.cfg. This flaw affects grub2 2.06 and previous versions. This issue has been fixed in grub upstream but no version with the fix is currently released.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::baseos","Rocky Linux:8","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":"Information disclosure in grub2","id":"CVE-2021-3981","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"information_disclosure","year":"2021"},"n_packages":45,"n_references":4,"next":{"headline":"Privilege escalation in gnome-shell","id":"CVE-2021-3982"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-common","purl":"pkg:rpm/almalinux/grub2-common","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-aa64","purl":"pkg:rpm/almalinux/grub2-efi-aa64","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-aa64-cdboot","purl":"pkg:rpm/almalinux/grub2-efi-aa64-cdboot","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-aa64-modules","purl":"pkg:rpm/almalinux/grub2-efi-aa64-modules","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-ia32","purl":"pkg:rpm/almalinux/grub2-efi-ia32","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-ia32-cdboot","purl":"pkg:rpm/almalinux/grub2-efi-ia32-cdboot","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-ia32-modules","purl":"pkg:rpm/almalinux/grub2-efi-ia32-modules","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-x64","purl":"pkg:rpm/almalinux/grub2-efi-x64","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-x64-cdboot","purl":"pkg:rpm/almalinux/grub2-efi-x64-cdboot","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-x64-modules","purl":"pkg:rpm/almalinux/grub2-efi-x64-modules","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-pc","purl":"pkg:rpm/almalinux/grub2-pc","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-pc-modules","purl":"pkg:rpm/almalinux/grub2-pc-modules","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8_6.8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-ppc64le","purl":"pkg:rpm/almalinux/grub2-ppc64le","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-ppc64le-modules","purl":"pkg:rpm/almalinux/grub2-ppc64le-modules","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-tools","purl":"pkg:rpm/almalinux/grub2-tools","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-tools-efi","purl":"pkg:rpm/almalinux/grub2-tools-efi","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-tools-extra","purl":"pkg:rpm/almalinux/grub2-tools-extra","source":"ALSA-2022:2110"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.02-123.el8.alma"],"introduced":["0"],"last_affected":[],"package":"grub2-tools-minimal","purl":"pkg:rpm/almalinux/grub2-tools-minimal","source":"ALSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2","purl":"pkg:rpm/redhat/grub2","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-common","purl":"pkg:rpm/redhat/grub2-common","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-debuginfo","purl":"pkg:rpm/redhat/grub2-debuginfo","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-debugsource","purl":"pkg:rpm/redhat/grub2-debugsource","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-aa64","purl":"pkg:rpm/redhat/grub2-efi-aa64","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-aa64-cdboot","purl":"pkg:rpm/redhat/grub2-efi-aa64-cdboot","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-aa64-modules","purl":"pkg:rpm/redhat/grub2-efi-aa64-modules","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-ia32","purl":"pkg:rpm/redhat/grub2-efi-ia32","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-ia32-cdboot","purl":"pkg:rpm/redhat/grub2-efi-ia32-cdboot","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-ia32-modules","purl":"pkg:rpm/redhat/grub2-efi-ia32-modules","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-x64","purl":"pkg:rpm/redhat/grub2-efi-x64","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-x64-cdboot","purl":"pkg:rpm/redhat/grub2-efi-x64-cdboot","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-efi-x64-modules","purl":"pkg:rpm/redhat/grub2-efi-x64-modules","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-pc","purl":"pkg:rpm/redhat/grub2-pc","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-pc-modules","purl":"pkg:rpm/redhat/grub2-pc-modules","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-ppc64le","purl":"pkg:rpm/redhat/grub2-ppc64le","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-ppc64le-modules","purl":"pkg:rpm/redhat/grub2-ppc64le-modules","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-tools","purl":"pkg:rpm/redhat/grub2-tools","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-tools-debuginfo","purl":"pkg:rpm/redhat/grub2-tools-debuginfo","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-tools-efi","purl":"pkg:rpm/redhat/grub2-tools-efi","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-tools-efi-debuginfo","purl":"pkg:rpm/redhat/grub2-tools-efi-debuginfo","source":"RHSA-2022:2110"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.02-123.el8"],"introduced":["0"],"last_affected":[],"package":"grub2-tools-extra","purl":"pkg:rpm/redhat/grub2-tools-extra","source":"RHSA-2022:2110"}],"prev":{"headline":"Exposure of Private Personal Information to an Unauthorized Actor in elgg/elgg","id":"CVE-2021-3980"},"products":["grub2"],"published":"2022-03-08","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-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":"2025-02-13","vendors":["n/a"]},"summary":"Local attackers can read GRUB configuration files to obtain encrypted passwords due to incorrect file permissions.","url":"https://insights.sbomify.com/CVE-2021-3981/"}