CVE-2019-1349
git: Recursive submodule cloning allows using git directory twice with synonymous directory name written in .git/
Severity
ModerateRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · December 10, 2019
Updated · June 28, 2026
Description
An improper input validation flaw was discovered in git in the way it handles git submodules. A remote attacker could abuse this flaw to trick a victim user into recursively cloning a malicious repository, which, under certain circumstances, could fool git into using the same git directory twice and potentially cause remote code execution.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Avoid running git clone --recurse-submodules and git submodule update with untrusted repositories.
CVSS / CWE
CVSS 3.0 · 7.5CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CWE-20 · Improper Input Validation