Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2021-21300
git-scm git

Score7.5 High
CVSS 3.1
Exploit probability (EPSS)90.8%
within the next 30 days
CategoryAccess control & privilege
Published9 March 2021
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, if a user clicks a link, opens a file or similar.

A successful attack has high impact: reading confidential data, modifying data, crashing the system or making it unavailable.

Special conditions are required for a successful attack, which makes exploitation harder.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

Git is an open-source distributed revision control system. In affected versions of Git a specially crafted repository that contains symbolic links as well as files using a clean/smudge filter such as Git LFS, may cause just-checked out script to be executed while cloning onto a case-insensitive file system such as NTFS, HFS+ or APFS (i.e. the default file systems on Windows and macOS). Note that clean/smudge filters have to be configured for that. Git for Windows configures Git LFS by default, and is therefore vulnerable. The problem has been patched in the versions published on Tuesday, March 9th, 2021. As a workaound, if symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. Likewise, if no clean/smudge filters such as Git LFS are configured globally (i.e. _before_ cloning), the attack is foiled. As always, it is best to avoid cloning repositories from untrusted sources. The earliest impacted version is 2.14.2. The fix versions are: 2.30.1, 2.29.3, 2.28.1, 2.27.1, 2.26.3, 2.25.5, 2.24.4, 2.23.4, 2.22.5, 2.21.4, 2.20.5, 2.19.6, 2.18.5, 2.17.62.17.6.

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

Weakness: CWE-59

Affected products

VendorProductVersions
git-scmgit<=2.14.2
git-scmgit>=2.17.0 <2.17.6
git-scmgit>=2.18.0 <2.18.5
git-scmgit>=2.19.0 <2.19.6
git-scmgit>=2.20.0 <2.20.5
git-scmgit>=2.21.0 <2.21.4
git-scmgit>=2.22.0 <2.22.5
git-scmgit>=2.23.0 <2.23.4
git-scmgit>=2.24.0 <2.24.4
git-scmgit>=2.25.0 <2.25.5
git-scmgit>=2.26.0 <2.26.3
git-scmgit>=2.29.0 <2.29.3
git-scmgit>=2.30.0 <2.30.2
git-scmgit2.27.0
git-scmgit2.28.0
fedoraprojectfedora32
fedoraprojectfedora33
fedoraprojectfedora34
applexcode<12.5
debiandebian linux10.0

Sources

Latest in the same category

  • CVE-2026-121477 Low 3.8
    A flaw was found in openpgp-cert-d. When reading a certificate, the component opens and reads the certificate file without verifying whether it is a symbolic link. In an environment where a certificate directory is…
    Access control & privilege · 1 December 2026
  • CVE-2026-121476 Low 3.8
    A flaw was found in openpgp-cert-d. When updating a certificate, the application opens the certificate file for writing without checking for symbolic links (symlinks). In environments where a certificate directory is…
    Access control & privilege · 1 December 2026
  • CVE-2026-121475 Low 3.8
    A flaw was found in openpgp-cert-d. When acquiring a write lock, the application opens and truncates the lock file without verifying whether it is a symbolic link (a reference pointing to another file). In environments…
    Access control & privilege · 1 December 2026
  • CVE-2026-121474 Low 3.3
    A flaw was found in sequoia-net. When inserting a certificate into a Web Key Directory (WKD) or creating a policy file, the application opens and writes to destination files without checking for symbolic links. In…
    Access control & privilege · 1 December 2026
  • CVE-2026-119000 Medium 5
    DoS vulnerability in the image codec module. Impact: Successful exploitation of this vulnerability may affect availability.
    Access control & privilege · 1 December 2026
  • CVE-2026-139981 Low 2.1
    A flaw has been found in PerfreeBlog up to 4.0.11. This affects an unknown part of the file CodegenController.java of the component Codegen Module. This manipulation causes missing authorization. The attack may be…
    Access control & privilege · 1 December 2026