BlackTreeCVE Intelligence
← Back to the CVE catalogue
Full vulnerability report · 2021
CVE-2021-21300High confidence

malicious repositories can execute remote code while cloning

git · git

Official source article: GitHub GHSA-8PRW-H3CQ-MGHM ↗. Check the applicable product and release in the original source.

8.0HighCVSS 3.1
Recommended action
Within 7 days

High technical severity with public exploit material referenced by a structured source; prioritise exposed affected systems while verifying vendor guidance.

Patch available
R
Operational reassessment

Published severity in operational context

Open reassessment dashboard →
Published severityHighOperational priority:Critical, raised one band.upgradedsince 3 Aug 2024

Evidence used

  • No CISA KEV confirmation is currently recorded.
  • A structured source references public exploit or proof-of-concept material.
  • EPSS is 88.53% for the current model date.

Compensating controls

  • Validate the affected product branch and deploy the verified fixed release.
  • Restrict the affected network interface to trusted sources where business-safe.
  • Increase monitoring for the attack path and post-exploitation behaviour described in the report.

Verification

  1. Confirm that the asset runs git git and falls inside the recorded affected range.
  2. Verify the installed build against the product-specific fixed version after deployment.
  3. Validate exposure, authentication requirements and compensating controls in the actual environment.
  4. Reopen this reassessment when CVSS, KEV, EPSS, exploit evidence or remediation changes.
Mitigation target: Within 3 daysRemediation target: Within 90 days

This automated reassessment organises public evidence. It does not know asset exposure, business impact or control effectiveness and does not replace CVSS or a human risk decision.

Distribution package intelligence

Release-specific package status

Alpine, Debian findings are scoped to the named distribution, release and source package. An absent finding does not mean a package is unaffected.

7 package states
Repository candidate not checked

A published vendor fix does not prove that a matching update is enabled and installable on a particular asset. Confirm the local package candidate before scheduling remediation.

Distribution releaseSource packageVendor stateFixed versionEvidence
Alpine v3.23v3.23 · maingitVendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.2.30.2-r0Alpine Security Database ↗Source updated 3 Oct 2026
Alpine v3.22v3.22 · maingitVendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.2.30.2-r0Alpine Security Database ↗Source updated 3 Oct 2026
Alpine v3.21v3.21 · maingitVendor fix publishedAlpine records a security fix at this version. An absent entry does not mean the package is unaffected.2.30.2-r0Alpine Security Database ↗Source updated 3 Oct 2026
Debian trixietrixie · sourcegitVendor fix publishedDebian records a fixed source-package version for this release.1:2.30.2-1Debian Security Tracker ↗Source updated 6 Oct 2026
Debian bookwormbookworm · sourcegitVendor fix publishedDebian records a fixed source-package version for this release.1:2.30.2-1Debian Security Tracker ↗Source updated 6 Oct 2026
Debian forkyforky · sourcegitVendor fix publishedDebian records a fixed source-package version for this release.1:2.30.2-1Debian Security Tracker ↗Source updated 6 Oct 2026
Debian sidsid · sourcegitVendor fix publishedDebian records a fixed source-package version for this release.1:2.30.2-1Debian Security Tracker ↗Source updated 6 Oct 2026
Optional official sources

National CERT insights
?CERT means Computer Emergency Response Team; CSIRT is the closely related term Computer Security Incident Response Team.

Choose official national sources for this report. Each advisory shows its original language. Your selection is remembered on this device and included in shared links.

Official European source

ENISA European Vulnerability Database

Official EUVD identifiers, advisory evidence and known-exploited context. Missing fields are not treated as evidence of low risk.

1 current
ENISA EUVD identifier

EUVD-2021-8658

No EUVD known-exploited evidence

ENISA has published the identifier mapping but no EUVD description has been stored yet.

EUVD state
Present in the current official mapping
Known exploitation
Not present in the current ENISA EUVD known-exploited dataset. This is not proof of no exploitation.
ENISA score
Not supplied in the stored EUVD record
Advisory evidence
No linked advisory details stored yet
Recommended actionWithin 7 days

High technical severity with public exploit material referenced by a structured source; prioritise exposed affected systems while verifying vendor guidance.

Patch available
01

What, why and how

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.

What

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.

Why

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

How

An attacker operating through a network path may attempt exploitation without authentication after a user interaction. If successful, the issue may cause the confidentiality, integrity or availability impact described by the vendor.

What

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.

Why

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

How

An attacker operating through a network path may attempt exploitation without authentication after a user interaction. If successful, the issue may cause the confidentiality, integrity or availability impact described by the vendor.

02

Exploit reality and attack path

CVSS severity, EPSS forecast probability, public exploit material and CISA-confirmed exploitation are separate signals.

Observed exploitation
?Confirmed exploitation and public exploit material are separate signals. Attacks can occur without public proof-of-concept or exploit code.
No confirmed evidence

No CISA KEV match was present at the last successful refresh. This means no confirmation from that source, not proof of no exploitation.

Public PoC / exploit material
?Confirmed exploitation and public exploit material are separate signals. Attacks can occur without public proof-of-concept or exploit code.
Reference recorded

A structured CVE source labels at least one public reference as exploit material. BlackTree has not independently validated that it is safe, reliable or weaponised.

Likely attack path
a network path → Improper Link Resolution Before File Access ('Link Following') → cause the confidentiality, integrity or availability impact described by the vendor
Attack surface
Network
Privileges required
None: unauthenticated exploitation is possible
User interaction
Required interaction required
Attack complexity
High: exploitation depends on specific conditions
Security boundary
Changed: exploitation can affect a different security authority
Weakness
?CWE means Common Weakness Enumeration: a standard category for the underlying weakness.
CWE-59 ↗

CWE-59: Improper Link Resolution Before File Access ('Link Following'). The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

CVSS vector
?CVSS means Common Vulnerability Scoring System. The vector records the metric values used to calculate technical severity.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Common Vulnerability Scoring System 3.1: the compact vector below is decoded into plain language.

AVNetworkAttack vector: The vulnerable component can be reached over a network.ACHighAttack complexity: Successful exploitation depends on specific conditions outside the attacker's direct control.PRNonePrivileges required: The attacker does not need an account or existing privileges.UIRequiredUser interaction: Another user must perform an action for exploitation to succeed.SChangedScope: The attack can affect a component governed by a different security authority.CHighConfidentiality impact: A successful attack can cause a major loss.IHighIntegrity impact: A successful attack can cause a major loss.ANoneAvailability impact: No direct loss is represented by this metric.
Post-exploitation / living off the land
No specific living-off-the-land technique is confirmed in the structured sources. Monitor normal administration tools for activity inconsistent with the affected service's baseline.
NetworkUnauthenticatedCWE-59Public exploit reference
A

Official authority intelligence

Only matched European and national findings are included. Language selectors and unavailable sources are omitted.

Cyber Security Agency of Singapore · English · CSA-SB-20210310Security Bulletin 10 Mar 2021

The Cyber Security Agency of Singapore included this CVE in its official Security Bulletin 10 Mar 2021, published on 10 March 2021. Open the linked bulletin for the product, severity and reference information published in that issue.

Official advisory ↗
CERT-FR · French · CERTFR-2021-AVI-314Multiples vulnérabilités dans les produits Apple

.cve.org/CVERecord?id=CVE-2021-1876 Référence CVE CVE-2021-1877 https://www.cve.org/CVERecord?id=CVE-2021-1877 Référence CVE CVE-2021-1878 https://www.cve.org/CVERecord?id=CVE-2021-1878 Référence CVE CVE-2021-1880 https://www.cve.org/CVERecord?id=CVE-2021-1880 Référence CVE CVE-2021-1881 https://www.cve.org/CVERecord?id=CVE-2021-1881 Référence CVE CVE-2021-1882 https://www.cve.org/CVERecord?id=CVE-2021-1882 Référence CVE CVE-2021-1883 https://www.cve.org/CVERecord?id=CVE-2021-1883 Référence CVE CVE-2021-1884 https://www.cve.org/CVERecord?id=CVE-2021-1884 Référence CVE CVE-2021-1885 https://www.cve.org/CVERecord?id=CVE-2021-1885 Référence CVE CVE-2021-21300 https://www.cve.org/CVERecord?id=CVE-2021-21300 Référence CVE CVE-2021-30652 https://www.cve.org/CVERecord?id=CVE-2021-30652 Référence CVE CVE-2021-30653 https://www.cve.org/CVERecord?id=CVE-2021-30653 Référence CVE CVE-2021-30655 https://www.cve.org/CVERecord?id=CVE-2021-30655 Référence CVE CVE-2021-30656 https://www.cve.org/CVERecord?id=CVE-2021-30656 Référence CVE CVE-2021-30657 https://www.cve.org/CVERecord?id=CVE-2021-30657 Référence CVE CVE-2021-30658 https://www.cve.org/CVERecord?id=CVE-2021-30658 Référence CVE CVE-2021-30659 https://www.cve.org/CVERecord?id=CVE-2021-30659 Référence CVE CVE-2021-30660 https://www.cve.org/CVERecord?id=

Official advisory ↗
CERT-FR · French · CERTFR-2021-AVI-182Multiples vulnérabilités dans les produits Microsoft

erver version 15.0.1104.300 Visual Studio Code Visual Studio Code - Java Extension Pack Visual Studio Code Remote - Containers Extension Résumé De multiples vulnérabilités ont été corrigées dans les produits Microsoft . Elles permettent à un attaquant de provoquer une exécution de code à distance, un contournement de la fonctionnalité de sécurité et une atteinte à la confidentialité des données. Solution Se référer au bulletin de sécurité de l'éditeur pour l'obtention des correctifs (cf. section Documentation). Documentation Bulletin de sécurité Microsoft du 09 mars 2021 https://portal.msrc.microsoft.com/fr-FR/security-guidance Référence CVE CVE-2021-21300 https://www.cve.org/CVERecord?id=CVE-2021-21300 Référence CVE CVE-2021-24089 https://www.cve.org/CVERecord?id=CVE-2021-24089 Référence CVE CVE-2021-24108 https://www.cve.org/CVERecord?id=CVE-2021-24108 Référence CVE CVE-2021-24110 https://www.cve.org/CVERecord?id=CVE-2021-24110 Référence CVE CVE-2021-26859 https://www.cve.org/CVERecord?id=CVE-2021-26859 Référence CVE CVE-2021-26902 https://www.cve.org/CVERecord?id=CVE-2021-26902 Référence CVE CVE-2021-27047 https://www.cve.org/CVERecord?id=CVE-2021-27047 Référence CVE CVE-2021-27048 https://www.cve.org/CVERecord?id=CVE-2021-27048 Référence CVE CVE-2021-27049 https://www.cve.org/CVERecord?id=

Official advisory ↗
JVN iPedia · Japanese · JVNDB-2021-004650Git におけるリンク解釈に関する脆弱性

Git には、リンク解釈に関する脆弱性が存在します。

Official advisory ↗
KISA KrCERT/CC · Korean · KNVD-5291Apple 제품 보안 업데이트 권고

Xcode의 Git에서 부적절한 검증으로 인해 발생하는 임의코드실행 취약점(CVE-2021-21300) [3]

Official advisory ↗
KISA KrCERT/CC · Korean · KNVD-5282MS 3월 보안 위협에 따른 정기 보안 업데이트 권고

C 비디오 확장 원격 코드 실행 취약성 CVE-2021-26902 HEVC 비디오 확장 원격 코드 실행 취약성 CVE-2021-26884 Windows Media 사진 코덱 정보 유출 취약성 CVE-2021-24110 HEVC 비디오 확장 원격 코드 실행 취약성 CVE-2021-24089 HEVC 비디오 확장 원격 코드 실행 취약성 Power BI CVE-2021-26859 Microsoft Power BI 정보 유출 취약성 Role: DNS Server CVE-2021-27063 Windows DNS 서버 서비스 거부 취약성 CVE-2021-26897 Windows DNS 서버 원격 코드 실행 취약성 CVE-2021-26896 Windows DNS 서버 서비스 거부 취약성 CVE-2021-26895 Windows DNS 서버 원격 코드 실행 취약성 CVE-2021-26894 Windows DNS 서버 원격 코드 실행 취약성 CVE-2021-26893 Windows DNS 서버 원격 코드 실행 취약성 CVE-2021-26877 Windows DNS 서버 원격 코드 실행 취약성 CVE-2021-26879 Windows NAT 서비스 거부 취약성 CVE-2021-26867 Windows Hyper-V 원격 코드 실행 취약성 Visual Studio CVE-2021-21300 Visual Studio용 Git 원격 코드 실행 취약성 CVE-2021-27084 Visual Studio Code Java 확장 팩 원격 코드 실행 취약성 CVE-2021-27083 Visual Studio Code용 원격 개발 확장 원격 코드 실행 취약성 CVE-2021-27082 Visual Studio Code용 Microsoft Quantum 개발 키트 원격 코드 실행 취약성 CVE-2021-27081 Visual Studio Code ESLint 확장 원격 코드 실행 취약성 CVE-2021-27060 Visual Studio Code 원격 코드 실행 취약성 Windows Admin Center CVE-2021-27066 Windows 관리 센터 보안 기능 우회 취약성 CVE-2021-26891 Windows 컨테이너 실행 에이전트 권한 상승 취약성 CVE-2021-26865 Windows 컨테이너 실행 에이전트 권한 상승 취약성 CVE-2021-24095 DirectX 권한 상승 취약성 CVE-2021-24090 Windows 오류 보고 권한 상승 취약성 CVE-2021-26901 Windows 이벤트 추적 권한 상승 취약성 CVE-2021-26898 Windows 이벤트 추적 권한 상승 취약성 CVE-2021-26872 Windo

Official advisory ↗
03

Patch and workaround

Operational remediation based on structured source evidence.

Status
?Patch availability is based on structured fixed-version fields and authoritative update references. If no fix is verified, check the vendor advisory before making a change.
Patch available
Affected
git: >= 2.14.2, < 2.17.62.17.6, >= 2.18.0, < 2.18.5, >= 2.19.0, < 2.19.6, >= 2.20.0, < 2.20.5, >= 2.21.0, < 2.21.4, >= 2.22.0, < 2.22.5, >= 2.23.0, < 2.23.4, >= 2.24.0, < 2.24.4, >= 2.25.0, < 2.25.5, >= 2.26.0, < 2.26.3, >= 2.27.0, < 2.27.1, >= 2.28.0, < 2.28.1, >= 2.29.0, < 2.29.3, >= 2.30.0, < 2.30.1
Fixed
An authoritative update reference is available, but the fixed version is not recorded in the structured CVE fields. Check the linked vendor advisory for the applicable release.
Action
Review the linked authoritative reference and apply the recorded fixed release appropriate to the affected product branch.
Workaround
No verified workaround is recorded. If business-safe, reduce exposure to the affected interface and allow only trusted sources until authoritative guidance is available.
04

Evidence and provenance

Published 9 Mar 2021 · Last source change 3 Aug 2024, 18:09 UTC · CWE-59 · Improper Link Resolution Before File Access ('Link Following')

CVE recordCVE.org · 5.1
CVSS sourceCNA
EPSS source
?The date BlackTree first stored a score for this CVE from the daily FIRST EPSS feed.
FIRST · tracked since 2026-08-14
European sourceENISA EUVD · EUVD-2021-8658
Product sourceCNA
Remediation sourceCVE/CNA references
CWE sourceCNA
NVD statusNVD modified after enrichment

Core structured fields are present and their contributing authorities are shown above.

Material change intelligence

What changed after publication

View recent updates ↗

No material field changes have been recorded since change tracking began. Routine source refreshes and cosmetic edits are intentionally excluded.

Material fields only · duplicate refreshes suppressed · history retained for the configured operational retention period
Technical terms and abbreviations used in this report
CVE
Common Vulnerabilities and Exposures: the public identifier for one disclosed vulnerability.
CVSS
Common Vulnerability Scoring System: a technical severity framework; it is not patching priority by itself.
EPSS
Exploit Prediction Scoring System: FIRST's estimate of the probability that exploitation activity will be observed in the next 30 days; it is a forecast, not confirmation.
CWE
Common Weakness Enumeration: the standard category describing the underlying software or hardware weakness.
CNA
CVE Numbering Authority: an organisation authorised to assign and publish CVE records.
CISA ADP
Cybersecurity and Infrastructure Security Agency Authorized Data Publisher: structured enrichment added to a CVE record.
NVD
National Vulnerability Database: NIST's enrichment service for CVE records.
CERT / CSIRT
A computer security incident response team that publishes warnings or coordinates incident response.
PoC
Proof of concept: public material that demonstrates or helps reproduce exploitation.
CSAF
Common Security Advisory Framework: a machine-readable format for security advisories.
LoTL
Living off the land: abuse of legitimate tools or system functions during an attack.
Free version - for non-commercial use only.CVE-2021-21300 · cve.blacktree.nl