CVE-2021-21300
mediumpriority · attend · 71EPSS 0.885 · 100 %ileexploit · weaponizedDEEURUUSEPSS · scored 2026-10-27
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.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixedphoenix_contact_psirt
**Update to Firmware Release 2022.0.3 LTS or higher:** - AXC F 2152 (2404267) [Download](http://www.phoenixcontact.net/qr/2404267/firmware) - AXC F 1152 (1151412) [Download](http://www.phoenixcontact.net/qr/1151412/firmware) - AXC F 3152 (1069208) Not yet released **Update to PLCnext Engineer Release 2022.0.1 LTS or higher.**
- Mitigationphoenix_contact_psirt
Phoenix Contact recommends operating network-capable devices in closed networks or protected with a suitable firewall. For detailed information on our recommendations for measures to protect network-capable devices, please refer to our application note: Measures to protect network-capable devices with Ethernet connection
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.1–8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (15)
Public proof-of-concept and weaponised exploit code.
- exploit/multi/http/git_lfs_clone_command_execGit LFS Clone Command Execweaponized · metasploit
- 1uanWu/CVE-2021-21300remote code exec for gitPoC · poc_in_github
- AlkenePan/CVE-2021-21300AlkenePan/CVE-2021-21300PoC · poc_in_github
- ETOCheney/cve-2021-21300ETOCheney/cve-2021-21300PoC · poc_in_github
- Faisal78123/CVE-2021-21300Faisal78123/CVE-2021-21300PoC · poc_in_github
- Kirill89/CVE-2021-21300Kirill89/CVE-2021-21300PoC · poc_in_github
affected products (48)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- VDE-2022-010PHOENIX CONTACT: Multiple Linux component vulnerabilities fixed in latest AXC F x152 LTS release2022-04-12csaf · phoenix_contact_psirtDE
PLCnext Control AXC F x152 is certified according to IEC 62443-4-1 and IEC 62443-4-2. This certification requires that all third-party components used in the firmware are regularly checked for known vulnerabilities. Firmware components in version 2021.06 had already been updated. For the 2022.0 LTS version more firmware components have been updated implicitly fixing the vulnerabilities listed. The vulnerabilities listed above have not been individually verified in terms of actual impact and/or limitations in combination with the affected products listed. The current LTS release 2022.0 LTS contains updates of integrated third-party libraries, SDKs and other third-party software to address these issues nevertheless. UPDATE A (April 4th, 2022): Added RFC 4072 (Art. No. 1051328) and fixed affected version of AXC F 3152
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (57)
External citations — patches, advisories, analysis.
- http://seclists.org/fulldisclosure/2021/Apr/60cnnvd
- http://www.openwall.com/lists/oss-security/2021/03/09/3cnnvd
- https://access.redhat.com/security/cve/cve-2021-21300cnnvd
- https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinkscnnvd
- https://git-scm.com/docs/gitattributes#_filtercnnvd
- https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592cnnvd
- https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghmcnnvd
- https://lists.debian.org/debian-lts-announce/2022/10/msg00014.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan