CVE-2021-20197
binutils: Race window allows users to own arbitrary files
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 7, 2021
Updated · January 22, 2026
Description
There is an open race window when writing output in the following utilities in GNU binutils1: ar, objcopy, strip, and 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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.2CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
CWE-59 · Improper Link Resolution Before File Access ('Link Following')