CISA list

● PyPI package

gitpython

Gitpython has 44 security advisories. The newest release any of them names as the fix is 3.2.1.

As of , gitpython has 44 security advisories. The newest release any of them names as the fix is 3.2.1.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 3.2.13.2.144 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2026-110859GHSA-23mf-xhv8-69c2GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-78679)High severityBefore 3.2.03.2.0
CVE-2026-110860GHSA-gq48-pqfc-9p58GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktreeModerate severityBefore 3.2.03.2.0
CVE-2026-110858GHSA-f9j4-qggq-h239GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command executionHigh severityFrom 3.1.30 before 3.2.03.2.0
CVE-2026-110857GHSA-w8jc-g24h-crhwGitPython command wrappers omit unsafe protocol and option checksHigh severityBefore 3.2.03.2.0
CVE-2026-110855GHSA-fx3j-rwgx-fr94GitPython: separate_git_dir leaks env vars via crafted .gitmodules submodule nameModerate severityBefore 3.2.03.2.0
CVE-2026-110856GHSA-m64x-33q8-m5h7GitPython parse_actor_and_date() is vulnerable to quadratic backtracking on malformed identity linesHigh severityBefore 3.2.03.2.0
CVE-2026-114145GHSA-83vg-56qc-22m7GitPython validates a submodule's ".git" path only after cloning into it (RCE)High severityBefore 3.2.13.2.1
CVE-2026-100689GHSA-59cr-6r3x-644wGitPython submodule update path traversal can write outside the repositoryModerate severityBefore 3.1.623.1.62
CVE-2026-87818GHSA-whh4-5q6c-9v3xGitPython: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracleModerate severityFrom 3.1.59 before 3.1.603.1.60
CVE-2026-87819GHSA-g5vv-9gxw-82hx, PYSEC-2026-3984GitPython: Denial of Service via catastrophic backtracking (ReDoS) in Actor.name_email_regex, commit author/committer field parsingHigh severityBefore 3.1.603.1.60
CVE-2026-87817GHSA-239g-whfq-7xj9, PYSEC-2026-3982GitPython: Repository content can impersonate the git directory, leading to arbitrary code executionHigh severityBefore 3.1.603.1.60
CVE-2026-78679GHSA-3wxw-xv34-2frg, PYSEC-2026-3837GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)Moderate severityBefore 3.1.593.1.59
CVE-2026-78678GHSA-5xxx-qhh7-9287, PYSEC-2026-3788GitPython: Incomplete unsafe_git_revision_options denylist omits --contents/-S, enabling arbitrary file read via Repo.blame()Moderate severityBefore 3.1.593.1.59
CVE-2026-78677GHSA-8mcc-hrx5-hvxc, PYSEC-2026-3787GitPython: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destinationHigh severityBefore 3.1.593.1.59
CVE-2026-78676GHSA-284h-m62q-gf8w, PYSEC-2026-3786GitPython: Dormant multi-line git-config values are corrupted into live injected directives (e.g. core.hooksPath) on any unrelated GitConfigParser write, enabling RCECritical severityBefore 3.1.593.1.59
CVE-2026-78675GHSA-7833-fr7j-v32q, PYSEC-2026-3785GitPython: Arbitrary local file content disclosure via [include] directive in untrusted .gitmodules (SubmoduleConfigParser never disables merge_includes)High severityBefore 3.1.593.1.59
CVE-2026-76220GHSA-wvpp-8hx9-p66j, PYSEC-2026-3843GitPython: Unsafe git option guard bypass via split_single_char_options=False short-option token smuggling enables command executionHigh severityBefore 3.1.583.1.58
CVE-2026-76221GHSA-jm78-9fvv-mhgr, PYSEC-2026-3783GitPython: git-config OPTION-name injection via =/#/whitespace bypasses name validator, enabling forged core.sshCommand/hooksPath (RCE)High severityBefore 3.1.583.1.58
CVE-2026-76222GHSA-hmq2-w58f-27jc, PYSEC-2026-3784GitPython: Arbitrary Git Repository Creation Outside the Working Tree via Unvalidated .gitmodules Submodule Name in GitPythonHigh severityBefore 3.1.583.1.58
CVE-2026-76217GHSA-hh9p-6wh2-4mfc, PYSEC-2026-3841GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()Moderate severityBefore 3.1.583.1.58
CVE-2026-76218GHSA-9rj7-rf2p-w77r, PYSEC-2026-3840GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooksHigh severityBefore 3.1.583.1.58
CVE-2026-76219GHSA-4gmw-gg2m-w46p, PYSEC-2026-3838GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwriteHigh severityBefore 3.1.583.1.58
CVE-2026-73621GHSA-p538-c434-8v24, PYSEC-2026-3950GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.countModerate severityBefore 3.1.563.1.56
CVE-2026-73619GHSA-539m-9xh6-q6rr, PYSEC-2026-3948GitPython: Incomplete unsafe_git_archive_options denylist omits --add-file / --add-virtual-file, enabling arbitrary file read via Repo.archive()Moderate severityBefore 3.1.573.1.57
CVE-2026-73620GHSA-3f7w-8rr8-f37f, PYSEC-2026-3949GitPython: Unguarded git option forwarding in IndexFile.checkout() and TagReference.create() enables arbitrary file overwrite and arbitrary file readHigh severityBefore 3.1.573.1.57
CVE-2026-73622GHSA-94p4-4cq8-9g67, PYSEC-2026-3951GitPython: Environment-variable exfiltration via Repo.create_remote() / Remote.add() URL (incomplete fix of GHSA-rwj8-pgh3-r573)High severityBefore 3.1.553.1.55
CVE-2026-73625GHSA-r9mr-m37c-5fr3, PYSEC-2026-3953GitPython: Unsafe git option guard bypass via single-character kwarg value token smuggling enables arbitrary command executionHigh severityBefore 3.1.543.1.54
CVE-2026-73623GHSA-6p8h-3wgx-97gf, PYSEC-2026-3952GitPython: Incomplete unsafe_git_clone_options denylist omits --template enabling arbitrary command execution via clone hooksHigh severityBefore 3.1.543.1.54
CVE-2026-73624GHSA-fjr4-x663-mwxc, PYSEC-2026-3995GitPython: Arbitrary file overwrite via git diff --output argument injection in Diffable.diff (key- and value-controlled)High severityBefore 3.1.543.1.54
CVE-2026-69097GHSA-3rp5-jjmw-4wv2, PYSEC-2026-3981GitPython: git-config section-name injection enables arbitrary config directives (core.sshCommand RCE)High severityBefore 3.1.533.1.53
CVE-2026-67322GHSA-rwj8-pgh3-r573, PYSEC-2026-3842GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URLHigh severityBefore 3.1.523.1.52
CVE-2026-67323GHSA-956x-8gvw-wg5v, PYSEC-2026-3839GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.blame()`High severityBefore 3.1.513.1.51
CVE-2026-67325GHSA-2f96-g7mh-g2hx, PYSEC-2026-3836GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklistHigh severityBefore 3.1.513.1.51
CVE-2026-67324GHSA-v396-v7q4-x2qj, PYSEC-2026-3947GitPython unsafe clone option gate bypass through joined short optionsHigh severityFrom 3.1.50 before 3.1.513.1.51
CVE-2026-67326GHSA-mv93-w799-cj2w, PYSEC-2026-3980GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPathHigh severityBefore 3.1.503.1.50
CVE-2026-44244GHSA-v87r-6q3f-2j67, PYSEC-2026-2163GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPathHigh severityBefore 3.1.493.1.49
CVE-2026-44243GHSA-7545-fcxq-7j24, PYSEC-2026-2162GitPython reference APIs has a path traversal vulnerability that allows arbitrary file write and delete outside the repositoryHigh severityBefore 3.1.483.1.48
CVE-2026-42215GHSA-rpm5-65cw-6hj4, PYSEC-2026-2160GitPython has Command Injection via Git options bypassHigh severityFrom 3.1.30 before 3.1.473.1.47
CVE-2026-42284GHSA-x2qx-6953-8485, PYSEC-2026-2161GitPython: Unsafe option check validates multi_options before shlex.split transformationHigh severityBefore 3.1.473.1.47
CVE-2024-22190GHSA-2mqj-m65w-jghx, PYSEC-2024-4Untrusted search path under some conditions on Windows allows arbitrary code executionHigh severityBefore 3.1.413.1.41
CVE-2023-41040GHSA-cwvm-v4w8-q58c, PYSEC-2023-165GitPython blind local file inclusionModerate severityBefore 3.1.373.1.37
CVE-2023-40590GHSA-wfm5-v35h-vwf4, PYSEC-2023-161GitPython untrusted search path on Windows systems leading to arbitrary code executionHigh severityBefore 3.1.333.1.33
CVE-2023-40267GHSA-pr76-5cm5-w9cj, PYSEC-2023-137GitPython vulnerable to remote code execution due to insufficient sanitization of input argumentsCritical severityBefore 3.1.323.1.32
CVE-2022-24439GHSA-hcpj-qp55-gfph, PYSEC-2022-42992GitPython vulnerable to Remote Code Execution due to improper user input validationCritical severityBefore 3.1.303.1.30

Other PyPI packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0
  • Package advisories from the PyPA advisory database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0