CVE-2021-20197
Reported by redhat · Published March 26, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| binutils | Arch Linux | 2.38-1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | binutils | binutils 2.35 |
| n/a | binutils | 2.35 |
Timeline
- Mar 26, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Dec 3, 2025 CVE Updated
- Mar 10, 2026 Security Advisory (5 in total, the first dated here)
- Jun 2, 2026 Distribution Patch
- Aug 27, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-20197
vulnetix vdb fixes CVE-2021-20197
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20197/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- GLSA-202208-30 vendor-advisoryx_refsource_GENTOO