Vulnerability CVE-2021-20197


Published: 2021-03-26

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.

Type:

CWE-59

(Improper Link Resolution Before File Access ('Link Following'))

CVSS2 => (AV:L/AC:M/Au:N/C:P/I:P/A:N)

CVSS Base Score
Impact Subscore
Exploitability Subscore
3.3/10
4.9/10
3.4/10
Exploit range
Attack complexity
Authentication
Local
Medium
No required
Confidentiality impact
Integrity impact
Availability impact
Partial
Partial
None
Affected software
Redhat -> Enterprise linux 
GNU -> Binutils 

 References:
https://bugzilla.redhat.com/show_bug.cgi?id=1913743
https://sourceware.org/bugzilla/show_bug.cgi?id=26945

Copyright 2024, cxsecurity.com

 

Back to Top