cve.bz

CVE-2021-20197 Link Following

6.3 mediumEPSS 0.3%Fix available

Medium (6.3). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 24th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-12-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-59 Improper Link Resolution Before File Access (Link Following)
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20197 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20197?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20197?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20197 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:binutilsthrough 2.35
redhat:enterprise_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14binutils2.37-3DEBIAN-CVE-2021-20197
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 1 morebinutilsno fix listedUBUNTU-CVE-2021-20197
Red Hatenterprise_linux:8::appstreambinutils-devel, binutils-debuginfo, binutils-debugsource0:2.30-108.el8RHSA-2021:4364
Red Hatenterprise_linux:8::baseosbinutils, binutils-debuginfo, binutils-debugsource0:2.30-108.el8RHSA-2021:4364
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 9 morebinutils2.37-7.21.2SUSE-SU-2021:3616-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 10 morebinutils2.37-9.39.1SUSE-SU-2021:3593-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morebinutils2.37-6.23.1SUSE-SU-2022:0934-1
SUSELinux Enterprise Module for Development Tools 15 SP3bpftrace0.11.4-3.2.1SUSE-SU-2021:3616-1
SUSELinux Enterprise Software Development Kit 12 SP5binutils, cross-ppc-binutils, cross-spu-binutils2.37-9.39.1SUSE-SU-2021:3593-1
openSUSELeap 15.2binutils, cross-rx-binutils, cross-arm-binutils and 19 more2.37-lp152.4.9.1openSUSE-SU-2021:1475-1
openSUSELeap 15.2bpftrace0.11.4-lp152.2.7.1openSUSE-SU-2021:1475-1
openSUSELeap 15.3binutils2.37-7.21.2openSUSE-SU-2021:3616-1
openSUSELeap 15.3bpftrace0.11.4-3.2.1openSUSE-SU-2021:3616-1
openSUSELeap 15.3cross-rx-binutils, cross-arm-binutils, cross-avr-binutils and 18 more2.37-7.21.1openSUSE-SU-2021:3616-1
openSUSETumbleweedbinutils2.37-1.3openSUSE-SU-2024:10651-1
AlmaLinux8binutils-devel2.30-108.el8ALSA-2021:4364
Rocky Linux8binutils0:2.30-108.el8RLSA-2021:4364
Azure Linux3crash8.0.4-4AZL-41714

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8binutils-0:2.30-108.el8Fixed 2021-11-09RHSA-2021:4364
Red Hat Enterprise Linux 6binutilsOut of support scope
Red Hat Enterprise Linux 7binutilsOut of support scope
Red Hat Enterprise Linux 8gcc-toolset-10-binutilsFix deferred
Red Hat Enterprise Linux 8gcc-toolset-9-binutilsAffected
Red Hat Enterprise Linux 9binutilsAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20197.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High
  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON