Vendorsgit-scmgitall versions
Vulnerabilities

git-scm git

Ranked by severity, then by exploit likelihood. Click a CVE ID for its full record.

41CVEs
CVE-2016-2324
Integer overflow in Git before 2.7.4 allows remote attackers to execute arbitrary code via a (1) long filename or (2) many nested trees, which triggers a heap-based buffer overflow.
Published 2016-04-08 · Modified
10.0EPSS 0.181
CVE-2016-2315
revision.c in git before 2.7.4 uses an incorrect integer data type, which allows remote attackers to execute arbitrary code via a (1) long filename or (2) many nested trees, leading to a heap-based buffer overflow.
Published 2016-04-08 · Modified
10.0EPSS 0.173
CVE-2018-17456
Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows remote code execution during processing of a recursive "git clone" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.
Published 2018-10-06 · Modified
9.82 PoCEPSS 0.974
CVE-2014-9390
Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and OS X; Mercurial before 3.2.3 on Windows and OS X; Apple Xcode before 6.2 beta 3; mine all versions before 08-12-2014; libgit2 all versions up to 0.21.2; Egit all versions before 08-12-2014; and JGit all versions before 08-12-2014 allow remote Git servers to execute arbitrary commands via a tree containing a crafted .git/config file with (1) an ignorable Unicode codepoint, (2) a git~1/config representation, or (3) mixed case that is improperly handled on a case-insensitive filesystem.
Published 2020-02-12 · Modified
9.8EPSS 0.756
CVE-2022-23521
gitattributes parsing integer overflow in git
Published 2023-01-17 · Modified
9.8EPSS 0.563
CVE-2022-41903
Integer overflow in `git archive`, `git log --format` leading to RCE in git
Published 2023-01-17 · Modified
9.8EPSS 0.443
CVE-2018-19486
Git before 2.19.2 on Linux and UNIX executes commands from the current working directory (as if '.' were at the end of $PATH) in certain cases involving the run_command() API and run-command.c, because there was a dangerous change from execvp to execv during 2017.
Published 2018-11-23 · Modified
9.8EPSS 0.041
CVE-2019-1353
An issue was found in Git before v2.24.1, v2.23.1, v2.22.2, v2.21.1, v2.20.2, v2.19.3, v2.18.2, v2.17.3, v2.16.6, v2.15.4, and v2.14.6. When running Git in the Windows Subsystem for Linux (also known as "WSL") while accessing a working directory on a regular Windows drive, none of the NTFS protections were active.
Published 2020-01-24 · Modified
9.8EPSS 0.022
CVE-2020-5260
malicious URLs may cause Git to present stored credentials to the wrong server
Published 2020-04-14 · Modified
9.3EPSS 0.100
CVE-2019-19604
Arbitrary command execution is possible in Git before 2.20.2, 2.21.x before 2.21.1, 2.22.x before 2.22.2, 2.23.x before 2.23.1, and 2.24.x before 2.24.1 because a "git submodule update" operation can run commands found in the .gitmodules file of a malicious repository.
Published 2019-12-10 · Modified
9.3EPSS 0.037
CVE-2017-14867
Git before 2.10.5, 2.11.x before 2.11.4, 2.12.x before 2.12.5, 2.13.x before 2.13.6, and 2.14.x before 2.14.2 uses unsafe Perl scripts to support subcommands such as cvsserver, which allows attackers to execute arbitrary OS commands via shell metacharacters in a module name. The vulnerable code is reachable via git-shell even without CVS support.
Published 2017-09-28 · Modified
9.0EPSS 0.360
CVE-2017-1000117
A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL can result in any program that exists on the victim's machine being executed. Such a URL could be placed in the .gitmodules file of a malicious project, and an unsuspecting victim could be tricked into running "git clone --recurse-submodules" to trigger the vulnerability.
Published 2017-10-04 · Modified
8.81 PoCEPSS 0.778
CVE-2019-1387
An issue was found in Git before v2.24.1, v2.23.1, v2.22.2, v2.21.1, v2.20.2, v2.19.3, v2.18.2, v2.17.3, v2.16.6, v2.15.4, and v2.14.6. Recursive clones are currently affected by a vulnerability that is caused by too-lax validation of submodule names, allowing very targeted attacks via remote code execution in recursive clones.
Published 2019-12-18 · Modified
8.8EPSS 0.044
CVE-2022-39260
Git vulnerable to Remote Code Execution via Heap overflow in `git shell`
Published 2022-10-19 · Modified
8.8EPSS 0.033
CVE-2014-9938
contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution.
Published 2017-03-20 · Modified
8.8EPSS 0.023
CVE-2022-41953
Git clone remote code execution vulnerability in git-for-windows
Published 2023-01-17 · Modified
8.6EPSS 0.068
CVE-2024-32004
Git vulnerable to Remote Code Execution while cloning special-crafted local repositories
Published 2024-05-14 · Analyzed
8.1EPSS 0.014
CVE-2021-21300
malicious repositories can execute remote code while cloning
Published 2021-03-09 · Modified
8.0EPSS 0.885
CVE-2025-48384
Git allows arbitrary code execution through broken config quoting
Published 2025-07-08 · Analyzed
8.0KEVEPSS 0.041
CVE-2018-11235
In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can occur. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs "git clone --recurse-submodules" because submodule "names" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with "../" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.
Published 2018-05-30 · Modified
7.8EPSS 0.488
CVE-2023-29007
Arbitrary configuration injection via `git submodule deinit`
Published 2023-04-25 · Modified
7.8EPSS 0.061
CVE-2024-32465
Git's protections for cloning untrusted repositories can be bypassed
Published 2024-05-14 · Analyzed
7.8EPSS 0.010
CVE-2022-24765
Uncontrolled search for the Git directory in Git for Windows
Published 2022-04-12 · Modified
7.8EPSS 0.010
CVE-2022-29187
Bypass of safe.directory protections in Git
Published 2022-07-12 · Modified
7.8EPSS 0.004
CVE-2023-25652
"git apply --reject" partially-controlled arbitrary file write
Published 2023-04-25 · Modified
7.5EPSS 0.519
CVE-2018-11233
In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, code to sanity-check pathnames on NTFS can result in reading out-of-bounds memory.
Published 2018-05-30 · Modified
7.5EPSS 0.045
CVE-2008-5516
The web interface in git (gitweb) 1.5.x before 1.5.5 allows remote attackers to execute arbitrary commands via shell metacharacters related to git_search.
Published 2009-01-20 · Modified
7.5EPSS 0.044
CVE-2020-11008
Malicious URLs can still cause Git to send a stored credential to the wrong server
Published 2020-04-21 · Modified
7.5EPSS 0.039
CVE-2021-40330
git_connect_git in connect.c in Git before 2.30.1 allows a repository path to contain a newline character, which may result in unexpected cross-protocol requests, as demonstrated by the git://localhost:1234/%0d%0a%0d%0aGET%20/%20HTTP/1.1 substring.
Published 2021-08-31 · Modified
7.5EPSS 0.029
CVE-2022-24975
The --mirror documentation for Git through 2.35.1 does not mention the availability of deleted content, aka the "GitBleed" issue. This could present a security risk if information-disclosure auditing processes rely on a clone operation without the --mirror option. Note: This has been disputed by multiple 3rd parties who believe this is an intended feature of the git binary and does not pose a security risk.
Published 2022-02-11 · Modified
7.5EPSS 0.026
CVE-2010-2542
Stack-based buffer overflow in the is_git_directory function in setup.c in Git before 1.7.2.1 allows local users to gain privileges via a long gitdir: field in a .git file in a working copy.
Published 2010-08-11 · Modified
7.5EPSS 0.025
CVE-2023-23946
Git's `git apply` overwriting paths outside the working tree
Published 2023-02-14 · Modified
7.5EPSS 0.011
CVE-2024-32021
Local Git clone may hardlink arbitrary user-readable files into the new repository's "objects/" directory
Published 2024-05-14 · Analyzed
7.1EPSS 0.010
CVE-2018-1000021
GIT version 2.15.1 and earlier contains a Input Validation Error vulnerability in Client that can result in problems including messing up terminal configuration to RCE. This attack appear to be exploitable via The user must interact with a malicious git server, (or have their traffic modified in a MITM attack).
Published 2018-02-09 · Modified
6.8EPSS 0.011
CVE-2017-15298
Git through 2.14.2 mishandles layers of tree objects, which allows remote attackers to cause a denial of service (memory consumption) via a crafted repository, aka a Git bomb. This can also have an impact of disk consumption; however, an affected process typically would not survive its attempt to build the data structure in memory before writing to disk.
Published 2017-10-14 · Modified
5.5EPSS 0.016
CVE-2022-39253
Git subject to exposure of sensitive information via local clone of symbolic links
Published 2022-10-19 · Modified
5.5EPSS 0.013
CVE-2023-22490
Git vulnerable to local clone-based data exfiltration with non-local transports
Published 2023-02-14 · Modified
5.5EPSS 0.007
CVE-2010-3906
Cross-site scripting (XSS) vulnerability in Gitweb 1.7.3.3 and earlier allows remote attackers to inject arbitrary web script or HTML via the (1) f and (2) fp parameters.
Published 2010-12-17 · Modified
4.31 PoCEPSS 0.056
CVE-2013-0308
The imap-send command in GIT before 1.8.1.4 does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.
Published 2013-03-08 · Modified
4.3EPSS 0.017
CVE-2024-32020
Cloning local Git repository by untrusted user allows the untrusted user to modify objects in the cloned repository at will
Published 2024-05-14 · Analyzed
3.9EPSS 0.005
1 / 2Next →