{"answers":{"affected":"It affects 6 products.","exploited":"There is no known exploitation of CVE-2021-20197 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-20197 is a medium-severity vulnerability in Gnu Binutils, published on 26 Mar 2021. 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-20197 and fix it if it is affected.\n\nWhat it is: CVE-2021-20197 is a medium-severity vulnerability in Gnu Binutils, published on 26 Mar 2021. 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-20197 in the wild and no public exploit code.\n\nAffected product: Gnu Binutils. 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-20197/ (Markdown: https://insights.sbomify.com/CVE-2021-20197/index.md)","id":"CVE-2021-20197","markdown":"https://insights.sbomify.com/CVE-2021-20197/index.md","name":"CVE-2021-20197","record":{"aliases":["AZL-41714","DEBIAN-CVE-2021-20197","GHSA-rq67-5wpf-96wv","OESA-2021-1153","UBUNTU-CVE-2021-20197"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["privilege_escalation","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"GNU binutils","requires_auth":"low_privilege","summary":"An unprivileged user can exploit a race condition in binutils utilities to overwrite arbitrary files and escalate privileges when run by a privileged user.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"brocade_fabric_operating_system_firmware","vendor":"broadcom"},{"product":"binutils","vendor":"gnu"},{"product":"cloud_backup","vendor":"netapp"},{"product":"ontap_select_deploy_administration_utility","vendor":"netapp"},{"product":"solidfire_\\\u0026_hci_management_node","vendor":"netapp"},{"product":"enterprise_linux","vendor":"redhat"}],"cvss":{"score":6.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"There is an open race window when writing output in the following utilities in GNU binutils version 2.35 and earlier:ar, objcopy, strip, ranlib. When these utilities are run as a privileged user (presumably as part of a script updating binaries across different users), an unprivileged user can trick these utilities into getting ownership of arbitrary files through a symlink.","ecosystems":[],"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":"Race condition in binutils","id":"CVE-2021-20197","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"gnu:binutils","products":["gnu:binutils","netapp:cloud_backup","netapp:ontap_select_deploy_administration_utility","netapp:solidfire_\\\u0026_hci_management_node","redhat:enterprise_linux"],"type":"race_condition","year":"2021"},"n_packages":0,"n_references":4,"next":{"headline":"Auth bypass in openshift/installer","id":"CVE-2021-20198"},"packages":[],"prev":{"headline":"Null dereference in qemu","id":"CVE-2021-20196"},"products":["binutils"],"published":"2021-03-26","related":[{"cvss_score":8.8,"headline":"Path traversal in https://github.com/curl/curl","id":"CVE-2023-27534","kev_date_added":null,"published":"2023-03-30"},{"cvss_score":7.8,"headline":"Privilege escalation in kernel","id":"CVE-2021-4197","kev_date_added":null,"published":"2022-03-23"},{"cvss_score":7.7,"headline":"Auth bypass in https://github.com/curl/curl","id":"CVE-2023-27538","kev_date_added":null,"published":"2023-03-30"},{"cvss_score":7.5,"headline":"Integer overflow in n/a","id":"CVE-2021-27218","kev_date_added":null,"published":"2021-02-15"},{"cvss_score":7.5,"headline":"Integer overflow in n/a","id":"CVE-2021-27219","kev_date_added":null,"published":"2021-02-15"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2019-19044","kev_date_added":null,"published":"2019-11-18"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2019-19052","kev_date_added":null,"published":"2019-11-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-12-03","vendors":["n/a"]},"summary":"An unprivileged user can exploit a race condition in binutils utilities to overwrite arbitrary files and escalate privileges when run by a privileged user.","url":"https://insights.sbomify.com/CVE-2021-20197/"}