PyPI package
gitpython vulnerabilities.Is your version affected?
Every reviewed advisory for the PyPI package gitpython, with the versions that fix it. Type your version to see what applies.
Check your version
Checked in your browser against 79 advisories with confirmed versions. Nothing is sent.
Fixes everything
3.2.1
Or any later release
Worst severity
Critical 9.8
CVE-2026-78676, remote code execution
Exploited
Not on CISA's list
No confirmed attacks
Fix first
Recent ones with public exploit evidence: exploited in the wild first, then weaponized, then proof of concept.
All vulnerabilities
Every known gitpython vulnerability
CVE
What
Severity
Status
Showing 36 of 36
Advisories
Reviewed advisories
GHSA-23mf-xhv8-69c2GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-78679)HighGHSA-gq48-pqfc-9p58GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktreeMediumGHSA-f9j4-qggq-h239GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command executionHighGHSA-w8jc-g24h-crhwGitPython command wrappers omit unsafe protocol and option checksHighGHSA-fx3j-rwgx-fr94GitPython: separate_git_dir leaks env vars via crafted .gitmodules submodule nameMediumGHSA-m64x-33q8-m5h7GitPython parse_actor_and_date() is vulnerable to quadratic backtracking on malformed identity linesHighCVE-2026-114145GitPython validates a submodule's ".git" path only after cloning into it (RCE)HighGHSA-59cr-6r3x-644wGitPython submodule update path traversal can write outside the repositoryMediumCVE-2026-87819GitPython: Denial of Service via catastrophic backtracking (ReDoS) in Actor.name_email_regex · commit author/committer field parsingHighGHSA-whh4-5q6c-9v3xGitPython: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracleMediumCVE-2026-87817GitPython: Repository content can impersonate the git directory, leading to arbitrary code executionHighCVE-2026-78679GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)MediumCVE-2026-76220GitPython: Unsafe git option guard bypass via split_single_char_options=False short-option token smuggling enables command executionHighCVE-2026-76217GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()MediumCVE-2026-76218GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooksHighCVE-2026-76219GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwriteHighCVE-2026-67322GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URLHighCVE-2026-67323GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.blame()`HighCVE-2026-67325GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklistHighCVE-2026-87819HighCVE-2026-87817CVE-2026-78679GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)MediumCVE-2026-78677GitPython: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destinationHighCVE-2026-78678GitPython: Incomplete unsafe_git_revision_options denylist omits --contents/-S, enabling arbitrary file read via Repo.blame()MediumCVE-2026-78676GitPython: Dormant multi-line git-config values are corrupted into live injected directives (e.g. core.hooksPath) on any unrelated GitConfigParser write, enabling RCECriticalCVE-2026-78675GitPython: Arbitrary local file content disclosure via [include] directive in untrusted .gitmodules (SubmoduleConfigParser never disables merge_includes)HighCVE-2026-78678CVE-2026-78677CVE-2026-78676CVE-2026-78675HighCVE-2026-76222CVE-2026-76221CVE-2026-73625CVE-2026-73624CVE-2026-73623HighCVE-2026-73622CVE-2026-73621CVE-2026-73620CVE-2026-73619CVE-2026-76220GitPython: Unsafe git option guard bypass via split_single_char_options=False short-option token smuggling enables command executionHighGHSA-jm78-9fvv-mhgrGitPython: git-config OPTION-name injection via =/#/whitespace bypasses name validator, enabling forged core.sshCommand/hooksPath (RCE)HighCVE-2026-76222GitPython: Arbitrary Git Repository Creation Outside the Working Tree via Unvalidated .gitmodules Submodule Name in GitPythonHighCVE-2026-76217GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()MediumCVE-2026-76218GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooksHighCVE-2026-76219GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwriteHighGHSA-p538-c434-8v24GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.countMediumGHSA-539m-9xh6-q6rrGitPython: Incomplete unsafe_git_archive_options denylist omits --add-file / --add-virtual-file, enabling arbitrary file read via Repo.archive()MediumGHSA-3f7w-8rr8-f37fGitPython: Unguarded git option forwarding in IndexFile.checkout() and TagReference.create() enables arbitrary file overwrite and arbitrary file readHighCVE-2026-69097HighCVE-2026-67326HighCVE-2026-67324GHSA-94p4-4cq8-9g67GitPython: Environment-variable exfiltration via Repo.create_remote() / Remote.add() URL (incomplete fix of GHSA-rwj8-pgh3-r573)HighGHSA-r9mr-m37c-5fr3GitPython: Unsafe git option guard bypass via single-character kwarg value token smuggling enables arbitrary command executionHighGHSA-6p8h-3wgx-97gfGitPython: Incomplete unsafe_git_clone_options denylist omits --template enabling arbitrary command execution via clone hooksHighGHSA-fjr4-x663-mwxcGitPython: Arbitrary file overwrite via git diff --output argument injection in Diffable.diff (key- and value-controlled)HighCVE-2026-69097GitPython: git-config section-name injection enables arbitrary config directives (core.sshCommand RCE)HighCVE-2026-67322GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URLHighCVE-2026-67323GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.blame()`HighCVE-2026-67325GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklistHighGHSA-v396-v7q4-x2qjGitPython unsafe clone option gate bypass through joined short optionsHighGHSA-mv93-w799-cj2wGitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPathHighCVE-2026-44244HighCVE-2026-44243HighCVE-2026-42284CriticalCVE-2026-42215HighCVE-2026-44244GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPathHighCVE-2026-44243GitPython reference APIs has a path traversal vulnerability that allows arbitrary file write and delete outside the repositoryHighCVE-2026-42215GitPython has Command Injection via Git options bypassHighCVE-2026-42284GitPython: Unsafe option check validates multi_options before shlex.split transformationHighCVE-2024-22190HighCVE-2024-22190Untrusted search path under some conditions on Windows allows arbitrary code executionHighCVE-2023-41040MediumCVE-2023-41040GitPython blind local file inclusionMediumCVE-2023-40590GitPython untrusted search path on Windows systems leading to arbitrary code executionHighCVE-2023-40590HighCVE-2023-40267GitPython vulnerable to remote code execution due to insufficient sanitization of input argumentsCriticalCVE-2023-40267CVE-2022-24439GitPython vulnerable to Remote Code Execution due to improper user input validationCriticalCVE-2022-24439