CVE-2021-20197

medium

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.

References

https://bugzilla.redhat.com/show_bug.cgi?id=1913743

https://sourceware.org/bugzilla/show_bug.cgi?id=26945

https://security.netapp.com/advisory/ntap-20210528-0009/

https://security.gentoo.org/glsa/202208-30

Details

Source: MITRE

Published: 2021-03-26

Updated: 2023-02-12

Type: CWE-59

Risk Information

CVSS v2

Base Score: 3.3

Vector: AV:L/AC:M/Au:N/C:P/I:P/A:N

Impact Score: 4.9

Exploitability Score: 3.4

Severity: LOW

CVSS v3

Base Score: 6.3

Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Impact Score: 5.2

Exploitability Score: 1

Severity: MEDIUM