Install
GitPython
GitPython is a Python library used to interact with Git repositories
3.2.1Latest, 14 Oct 2026
144MDownloads, last month
0Advisories on the latest
40Advisories, all versions
BSD-3-ClauseLicence
5.2KStars
7.2/10OpenSSF Scorecard
Source · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-78679) CVE-2026-110859 | Fixed in 3.2.0 | 27 Oct 2026 |
| High | GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command execution CVE-2026-110858 | Fixed in 3.2.0 | 27 Oct 2026 |
| Moderate | GitPython: separate_git_dir leaks env vars via crafted .gitmodules submodule name CVE-2026-110855 | Fixed in 3.2.0 | 27 Oct 2026 |
| Moderate | GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktree CVE-2026-110860 | Fixed in 3.2.0 | 27 Oct 2026 |
| High | GitPython parse_actor_and_date() is vulnerable to quadratic backtracking on malformed identity lines CVE-2026-110856 | Fixed in 3.2.0 | 27 Oct 2026 |
| High | GitPython command wrappers omit unsafe protocol and option checks CVE-2026-110857 | Fixed in 3.2.0 | 27 Oct 2026 |
| High | GitPython validates a submodule's ".git" path only after cloning into it (RCE) CVE-2026-114145 | Fixed in 3.2.1 | 22 Oct 2026 |
| High | GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution CVE-2026-87817 | Fixed in 3.1.60 | 30 Sep 2026 |
| Moderate | GitPython submodule update path traversal can write outside the repository CVE-2026-100689 | Fixed in 3.1.62 | 30 Sep 2026 |
| High | GitPython: Denial of Service via catastrophic backtracking (ReDoS) in Actor.name_email_regex — commit author/committer field parsing CVE-2026-87819 | Fixed in 3.1.60 | 30 Sep 2026 |
| Moderate | GitPython: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracle CVE-2026-87818 | Fixed in 3.1.60 | 30 Sep 2026 |
| GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklist CVE-2026-67325 | Fixed in 3.1.51 | 10 Sep 2026 | |
| GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251) CVE-2026-78679 | Fixed in 3.1.59 | 10 Sep 2026 | |
| GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite CVE-2026-76219 | Fixed in 3.1.58 | 10 Sep 2026 | |
| GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.bl CVE-2026-67323 | Fixed in 3.1.51 | 10 Sep 2026 |
In the news
- Building an AST Code Verifier Without NetworkX, GitPython, or Any Dependencies dev.to, 2 Sep 2026
- How to install gitpython in GitBash on Windows? stackoverflow.com, 21 Feb 2025
- GitPython unable to execute command in existing repository stackoverflow.com, 11 Nov 2024
- GitPython: getting the latest tag of a remote repo stackoverflow.com, 17 Oct 2024
- Add safe directory with gitpython stackoverflow.com, 25 Sep 2024
Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.