Package · PyPI
gitpython
Every known advisory for the PyPI package gitpython, with the affected versions and how widely it is downloaded.
Advisories79
Malicious0
In CISA KEV0
Exposure34,620,980 downloads last week
Newest fixed version among these advisories: ef3192cc414f2fd9978908454f6fd95243784c7f. Check your version against each range below.
| Advisory | Affected versions | Published |
|---|---|---|
| CVE-2026-110859 GHSA-23mf-xhv8-69c2 GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-78679) | every version to 3.2.0 | 2026-10-27 |
| CVE-2026-110858 GHSA-f9j4-qggq-h239 GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command execution | 3.1.30 to 3.2.0 | 2026-10-27 |
| CVE-2026-110855 GHSA-fx3j-rwgx-fr94 GitPython: separate_git_dir leaks env vars via crafted .gitmodules submodule name | every version to 3.2.0 | 2026-10-27 |
| CVE-2026-110860 GHSA-gq48-pqfc-9p58 GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktree | every version to 3.2.0 | 2026-10-27 |
| CVE-2026-110856 GHSA-m64x-33q8-m5h7 GitPython parse_actor_and_date() is vulnerable to quadratic backtracking on malformed identity lines | every version to 3.2.0 | 2026-10-27 |
| CVE-2026-110857 GHSA-w8jc-g24h-crhw GitPython command wrappers omit unsafe protocol and option checks | every version to 3.2.0 | 2026-10-27 |
| CVE-2026-114145 GHSA-83vg-56qc-22m7 GitPython validates a submodule's ".git" path only after cloning into it (RCE) | every version to 3.2.1 | 2026-10-22 |
| CVE-2026-87817 GHSA-239g-whfq-7xj9 GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution | every version to 3.1.60 | 2026-09-30 |
| CVE-2026-100689 GHSA-59cr-6r3x-644w GitPython submodule update path traversal can write outside the repository | every version to 3.1.62 | 2026-09-30 |
| CVE-2026-87819 GHSA-g5vv-9gxw-82hx GitPython: Denial of Service via catastrophic backtracking (ReDoS) in Actor.name_email_regex — commit author/committer field parsing | every version to 3.1.60 | 2026-09-30 |
| CVE-2026-87818 GHSA-whh4-5q6c-9v3x GitPython: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracle | 3.1.59 to 3.1.60 | 2026-09-30 |
| CVE-2026-67325 PYSEC-2026-3836 GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklist | every version to 3.1.51 | 2026-09-10 |
| CVE-2026-78679 PYSEC-2026-3837 GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251) | every version to 3.1.59 | 2026-09-10 |
| CVE-2026-76219 PYSEC-2026-3838 GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite | every version to 3.1.58 | 2026-09-10 |
| CVE-2026-67323 PYSEC-2026-3839 GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.blame()` | every version to 3.1.51 | 2026-09-10 |
| CVE-2026-76218 PYSEC-2026-3840 GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks | every version to 3.1.58 | 2026-09-10 |
| CVE-2026-76217 PYSEC-2026-3841 GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout() | every version to 3.1.58 | 2026-09-10 |
| CVE-2026-67322 PYSEC-2026-3842 GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL | every version to 3.1.52 | 2026-09-10 |
| CVE-2026-76220 PYSEC-2026-3843 GitPython: Unsafe git option guard bypass via split_single_char_options=False short-option token smuggling enables command execution | every version to 3.1.58 | 2026-09-10 |
| CVE-2026-87817 PYSEC-2026-3982 GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malic | every version to 3.1.60 | 2026-09-09 |
| CVE-2026-87819 PYSEC-2026-3984 GitPython before 3.1.60 contains a regular expression denial of service vulnerability in Actor.name_email_regex that processes commit author and committer fields. Attackers can craft a commit object with a malformed author field containing | every version to 3.1.60 | 2026-09-09 |
| CVE-2026-78676 GHSA-284h-m62q-gf8w GitPython: Dormant multi-line git-config values are corrupted into live injected directives (e.g. core.hooksPath) on any unrelated GitConfigParser write, enabling RCE | every version to 3.1.59 | 2026-09-08 |
| CVE-2026-78679 GHSA-3wxw-xv34-2frg GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251) | every version to 3.1.59 | 2026-09-08 |
| CVE-2026-78678 GHSA-5xxx-qhh7-9287 GitPython: Incomplete unsafe_git_revision_options denylist omits --contents/-S, enabling arbitrary file read via Repo.blame() | every version to 3.1.59 | 2026-09-08 |
| CVE-2026-78675 GHSA-7833-fr7j-v32q GitPython: Arbitrary local file content disclosure via [include] directive in untrusted .gitmodules (SubmoduleConfigParser never disables merge_includes) | every version to 3.1.59 | 2026-09-08 |
| CVE-2026-78677 GHSA-8mcc-hrx5-hvxc GitPython: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destination | every version to 3.1.59 | 2026-09-08 |
| CVE-2026-78675 PYSEC-2026-3785 GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file paths via [include] directives. Attackers can craft a malicious .gitmodules file | every version to 3.1.59 | 2026-08-25 |
| CVE-2026-78676 PYSEC-2026-3786 GitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into injected directives like core.hooksPath. Attackers can craft config files with embedded newline | every version to 3.1.59 | 2026-08-25 |
| CVE-2026-78677 PYSEC-2026-3787 GitPython before 3.1.59 omits --separate-git-dir from unsafe_git_clone_options, allowing attackers to create arbitrary git directories outside the intended clone destination. Attackers can pass a separate_git_dir parameter to Repo.clone_fro | every version to 3.1.59 | 2026-08-25 |
| CVE-2026-78678 PYSEC-2026-3788 GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to Repo.blame(). Attackers ca | every version to 3.1.59 | 2026-08-25 |
| CVE-2026-76221 PYSEC-2026-3783 GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace into option names. At | every version to 3.1.58 | 2026-08-19 |
| CVE-2026-76222 PYSEC-2026-3784 GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories w | every version to 3.1.58 | 2026-08-19 |
| CVE-2026-73619 PYSEC-2026-3948 GitPython before 3.1.57 contains an incomplete denylist in the unsafe_git_archive_options guard that omits --add-file and --add-virtual-file options. Attackers can supply these options to Repo.archive() to read arbitrary files from the file | every version to 3.1.57 | 2026-08-13 |
| CVE-2026-73620 PYSEC-2026-3949 GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository co | every version to 3.1.57 | 2026-08-13 |
| CVE-2026-73621 PYSEC-2026-3950 GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling iter_items method. An attack | every version to 3.1.56 | 2026-08-13 |
| CVE-2026-73622 PYSEC-2026-3951 GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs | every version to 3.1.55 | 2026-08-13 |
| CVE-2026-73623 PYSEC-2026-3952 GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a dire | every version to 3.1.54 | 2026-08-13 |
| CVE-2026-73625 PYSEC-2026-3953 GitPython versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard that can be bypassed by smuggling git options inside single-character kwarg values. Attackers can supply crafted option diction | every version to 3.1.54 | 2026-08-13 |
| CVE-2026-73624 PYSEC-2026-3995 GitPython versions before 3.1.54 contain an arbitrary file overwrite vulnerability in the Diffable.diff method that fails to validate git options passed through kwargs. Attackers can supply the --output argument via the other parameter or o | every version to 3.1.54 | 2026-08-13 |
| CVE-2026-76219 GHSA-4gmw-gg2m-w46p GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite | every version to 3.1.58 | 2026-08-07 |
| CVE-2026-76218 GHSA-9rj7-rf2p-w77r GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks | every version to 3.1.58 | 2026-08-07 |
| CVE-2026-76217 GHSA-hh9p-6wh2-4mfc GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout() | every version to 3.1.58 | 2026-08-07 |
| CVE-2026-76222 GHSA-hmq2-w58f-27jc GitPython: Arbitrary Git Repository Creation Outside the Working Tree via Unvalidated .gitmodules Submodule Name in GitPython | every version to 3.1.58 | 2026-08-07 |
| CVE-2026-76221 GHSA-jm78-9fvv-mhgr GitPython: git-config OPTION-name injection via =/#/whitespace bypasses name validator, enabling forged core.sshCommand/hooksPath (RCE) | every version to 3.1.58 | 2026-08-07 |
| CVE-2026-76220 GHSA-wvpp-8hx9-p66j GitPython: Unsafe git option guard bypass via split_single_char_options=False short-option token smuggling enables command execution | every version to 3.1.58 | 2026-08-07 |
| CVE-2026-73620 GHSA-3f7w-8rr8-f37f GitPython: Unguarded git option forwarding in IndexFile.checkout() and TagReference.create() enables arbitrary file overwrite and arbitrary file read | every version to 3.1.57 | 2026-08-03 |
| CVE-2026-73619 GHSA-539m-9xh6-q6rr GitPython: Incomplete unsafe_git_archive_options denylist omits --add-file / --add-virtual-file, enabling arbitrary file read via Repo.archive() | every version to 3.1.57 | 2026-08-03 |
| CVE-2026-73621 GHSA-p538-c434-8v24 GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.count | every version to 3.1.56 | 2026-08-03 |
| CVE-2026-69097 PYSEC-2026-3981 GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inject arbitrary configuration directives through malicious submodule names. Attackers can inject core.sshCommand or other dangerous c | every version to 3.1.53 | 2026-08-03 |
| CVE-2026-67324 PYSEC-2026-3947 GitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default unsafe-option gate. When an application passes attacker-influenced clone options into Repo. | 3.1.50 to 3.1.51 | 2026-08-01 |
| CVE-2026-67326 PYSEC-2026-3980 GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] secti | every version to 3.1.50 | 2026-08-01 |
| CVE-2026-69097 GHSA-3rp5-jjmw-4wv2 GitPython: git-config section-name injection enables arbitrary config directives (core.sshCommand RCE) | every version to 3.1.53 | 2026-07-24 |
| CVE-2026-73623 GHSA-6p8h-3wgx-97gf GitPython: Incomplete unsafe_git_clone_options denylist omits --template enabling arbitrary command execution via clone hooks | every version to 3.1.54 | 2026-07-24 |
| CVE-2026-73622 GHSA-94p4-4cq8-9g67 GitPython: Environment-variable exfiltration via Repo.create_remote() / Remote.add() URL (incomplete fix of GHSA-rwj8-pgh3-r573) | every version to 3.1.55 | 2026-07-24 |
| CVE-2026-73624 GHSA-fjr4-x663-mwxc GitPython: Arbitrary file overwrite via git diff --output argument injection in Diffable.diff (key- and value-controlled) | every version to 3.1.54 | 2026-07-24 |
| CVE-2026-73625 GHSA-r9mr-m37c-5fr3 GitPython: Unsafe git option guard bypass via single-character kwarg value token smuggling enables arbitrary command execution | every version to 3.1.54 | 2026-07-24 |
| CVE-2026-67325 GHSA-2f96-g7mh-g2hx GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklist | every version to 3.1.51 | 2026-07-21 |
| CVE-2026-67323 GHSA-956x-8gvw-wg5v GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.blame()` | every version to 3.1.51 | 2026-07-21 |
| CVE-2026-67322 GHSA-rwj8-pgh3-r573 GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL | every version to 3.1.52 | 2026-07-21 |
| CVE-2026-67324 GHSA-v396-v7q4-x2qj GitPython unsafe clone option gate bypass through joined short options | 3.1.50 to 3.1.51 | 2026-07-21 |
| CVE-2026-67326 GHSA-mv93-w799-cj2w GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPath | every version to 3.1.50 | 2026-05-08 |
| CVE-2026-42215 PYSEC-2026-2160 GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs | 3.1.30 to 3.1.47 | 2026-05-07 |
| CVE-2026-42284 PYSEC-2026-2161 GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config | every version to 3.1.47 | 2026-05-07 |
| CVE-2026-44243 PYSEC-2026-2162 GitPython is a python library used to interact with Git repositories. Prior to version 3.1.48, a vulnerability in GitPython allows attackers who can supply a crafted reference path to an application using GitPython to write, overwrite, move | every version to 3.1.48 | 2026-05-07 |
| CVE-2026-44244 PYSEC-2026-2163 GitPython is a python library used to interact with Git repositories. Prior to version 3.1.49, GitConfigParser.set_value() passes values to Python's configparser without validating for newlines. GitPython's own _write() converts embedded ne | every version to 3.1.49 | 2026-05-07 |
| CVE-2026-44243 GHSA-7545-fcxq-7j24 GitPython reference APIs has a path traversal vulnerability that allows arbitrary file write and delete outside the repository | every version to 3.1.48 | 2026-05-06 |
| CVE-2026-44244 GHSA-v87r-6q3f-2j67 GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath | every version to 3.1.49 | 2026-05-06 |
| CVE-2026-42215 GHSA-rpm5-65cw-6hj4 GitPython has Command Injection via Git options bypass | 3.1.30 to 3.1.47 | 2026-04-25 |
| CVE-2026-42284 GHSA-x2qx-6953-8485 GitPython: Unsafe option check validates multi_options before shlex.split transformation | every version to 3.1.47 | 2026-04-25 |
| CVE-2024-22190 PYSEC-2024-4 GitPython is a python library used to interact with Git repositories. There is an incomplete fix for CVE-2023-40590. On Windows, GitPython uses an untrusted search path if it uses a shell to run `git`, as well as when it runs `bash.exe` to | every version to ef3192cc414f2fd9978908454f6fd95243784c7f every version to 3.1.41 | 2024-01-11 |
| CVE-2024-22190 GHSA-2mqj-m65w-jghx Untrusted search path under some conditions on Windows allows arbitrary code execution | every version to 3.1.41 | 2024-01-10 |
| CVE-2023-41040 GHSA-cwvm-v4w8-q58c GitPython blind local file inclusion | every version to 3.1.37 | 2023-08-30 |
| CVE-2023-41040 PYSEC-2023-165 GitPython is a python library used to interact with Git repositories. In order to resolve some git references, GitPython reads files from the `.git` directory, in some places the name of the file being read is provided by the user, GitPyth | every version to 3.1.35 | 2023-08-30 |
| CVE-2023-40590 GHSA-wfm5-v35h-vwf4 GitPython untrusted search path on Windows systems leading to arbitrary code execution | every version to 3.1.33 | 2023-08-29 |
| CVE-2023-40590 PYSEC-2023-161 GitPython is a python library used to interact with Git repositories. When resolving a program, Python/Windows look for the current working directory, and after that the PATH environment. GitPython defaults to use the `git` command, if a u | every version to 3.1.33 | 2023-08-28 |
| CVE-2023-40267 GHSA-pr76-5cm5-w9cj GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments | every version to 3.1.32 | 2023-08-11 |
| CVE-2023-40267 PYSEC-2023-137 GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from. NOTE: this issue exists because of an incomplete fix for CVE-2022-24439. | every version to ca965ecc81853bca7675261729143f54e5bf4cdd every version to 3.1.32 | 2023-08-11 |
| CVE-2022-24439 GHSA-hcpj-qp55-gfph GitPython vulnerable to Remote Code Execution due to improper user input validation | every version to 3.1.30 | 2022-12-06 |
| CVE-2022-24439 PYSEC-2022-42992 All versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inject a maliciously crafted remote URL into the clone command. Exploiting this vulnerability | every version to 3.1.30 | 2022-12-06 |
Advisories from OSV (GitHub, PyPA, RustSec, Go, OpenSSF malicious packages and more). Scan a whole lockfile on the scan page. Most exposed packages.