VDB

CVE-2021-20197

CVE-2021-20197 PUBLISHED CVSS 6.3 MEDIUM

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.

PackageEcosystemFixed in
binutilsArch Linux2.38-1

Risk scores

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

Affected products

VendorProductVersions
n/abinutilsbinutils 2.35
n/abinutils2.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
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›