SecurityContext

CVE-2021-20197: GNU binutils - Race Condition

  • Cve: CVE-2021-20197
  • Name: GNU binutils - Race Condition
  • 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.
  • Impact: Unprivileged users can manipulate file ownership via symlinks, potentially leading to privilege escalation or unauthorized file access.
  • Remediation: Update to version 2.36 or later to fix the race condition.
  • Vulnerability type: race_condition
  • Vulnerability impact: file_system_write, privilege_escalation
  • Requirement type: logged_in
  • Requirements: Unprivileged user must run utilities as privileged user
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.3
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.00304
  • Epss percentile: 0.23599
  • Assignee: [email protected]
  • Published at: 2021-03-26T17:15:12Z
  • Age in days: 2069
  • Modified at: 2026-06-17T03:33:27Z
  • Patch available: yes
  • References total: 4
  • Products total: 6
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-20197
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-59Improper Link Resolution Before File Access

References

Same in every row:

  • Source: nvd
UrlTags
https://bugzilla.redhat.com/show_bug.cgi?id=1913743Issue Tracking, Patch, Third Party Advisory
https://sourceware.org/bugzilla/show_bug.cgi?id=26945Issue Tracking, Patch, Third Party Advisory
https://security.gentoo.org/glsa/202208-30Third Party Advisory
https://security.netapp.com/advisory/ntap-20210528-0009/Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
gnu:binutils<= 2.35/v1/products/gnu/binutils
redhat:enterprise_linux= 8.0/v1/products/redhat/enterprise_linux
netapp:cloud_backupall versions/v1/products/netapp/cloud_backup
netapp:ontap_select_deploy_administration_utilityall versions/v1/products/netapp/ontap_select_deploy_administration_utility
netapp:solidfire_&_hci_management_nodeall versions/v1/products/netapp/solidfire_&_hci_management_node
broadcom:brocade_fabric_operating_system_firmwareall versions/v1/products/broadcom/brocade_fabric_operating_system_firmware

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts