# GitPython (PyPI)

GitPython is a Python library used to interact with Git repositories

- Latest: 3.2.1 (2026-10-14)
- Licence: BSD-3-Clause
- Downloads: 144304302 last month
- Advisories on the latest version: 0

- CVE-2026-110859 HIGH: GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-78679) Fixed in 3.2.0.
- CVE-2026-110858 HIGH: GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command execution Fixed in 3.2.0.
- CVE-2026-110855 MODERATE: GitPython: separate_git_dir leaks env vars via crafted .gitmodules submodule name Fixed in 3.2.0.
- CVE-2026-110860 MODERATE: GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktree Fixed in 3.2.0.
- CVE-2026-110856 HIGH: GitPython parse_actor_and_date() is vulnerable to quadratic backtracking on malformed identity lines Fixed in 3.2.0.
- CVE-2026-110857 HIGH: GitPython command wrappers omit unsafe protocol and option checks Fixed in 3.2.0.
- CVE-2026-114145 HIGH: GitPython validates a submodule's ".git" path only after cloning into it (RCE) Fixed in 3.2.1.
- CVE-2026-87817 HIGH: GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution Fixed in 3.1.60.
- CVE-2026-100689 MODERATE: GitPython submodule update path traversal can write outside the repository Fixed in 3.1.62.
- CVE-2026-87819 HIGH: GitPython: Denial of Service via catastrophic backtracking (ReDoS) in Actor.name_email_regex — commit author/committer field parsing Fixed in 3.1.60.
- CVE-2026-87818 MODERATE: GitPython: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracle Fixed in 3.1.60.
- CVE-2026-67325 : GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklist Fixed in 3.1.51.
- CVE-2026-78679 : GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251) Fixed in 3.1.59.
- CVE-2026-76219 : GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite Fixed in 3.1.58.
- CVE-2026-67323 : GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.bl Fixed in 3.1.51.
- CVE-2026-76218 : GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks Fixed in 3.1.58.
- CVE-2026-76217 : GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout() Fixed in 3.1.58.
- CVE-2026-67322 : GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL Fixed in 3.1.52.
- CVE-2026-76220 : GitPython: Unsafe git option guard bypass via split_single_char_options=False short-option token smuggling enables command execution Fixed in 3.1.58.
- CVE-2026-87817 :  Fixed in 3.1.60.
- CVE-2026-87819 :  Fixed in 3.1.60.
- CVE-2026-78676 CRITICAL: GitPython: Dormant multi-line git-config values are corrupted into live injected directives (e.g. core.hooksPath) on any unrelated GitConfigParser write, enabli Fixed in 3.1.59.
- CVE-2026-78679 MODERATE: GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251) Fixed in 3.1.59.
- CVE-2026-78678 MODERATE: GitPython: Incomplete unsafe_git_revision_options denylist omits --contents/-S, enabling arbitrary file read via Repo.blame() Fixed in 3.1.59.
- CVE-2026-78675 HIGH: GitPython: Arbitrary local file content disclosure via [include] directive in untrusted .gitmodules (SubmoduleConfigParser never disables merge_includes) Fixed in 3.1.59.
- CVE-2026-78677 HIGH: GitPython: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destination Fixed in 3.1.59.
- CVE-2026-78675 :  Fixed in 3.1.59.
- CVE-2026-78676 :  Fixed in 3.1.59.
- CVE-2026-78677 :  Fixed in 3.1.59.
- CVE-2026-78678 :  Fixed in 3.1.59.
- CVE-2026-76221 :  Fixed in 3.1.58.
- CVE-2026-76222 :  Fixed in 3.1.58.
- CVE-2026-73619 :  Fixed in 3.1.57.
- CVE-2026-73620 :  Fixed in 3.1.57.
- CVE-2026-73621 :  Fixed in 3.1.56.
- CVE-2026-73622 :  Fixed in 3.1.55.
- CVE-2026-73623 :  Fixed in 3.1.54.
- CVE-2026-73625 :  Fixed in 3.1.54.
- CVE-2026-73624 :  Fixed in 3.1.54.
- CVE-2026-76219 HIGH: GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite Fixed in 3.1.58.

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
