PyPI (Python)Worst: Critical62 advisories
gitpython: known vulnerabilities
gitpython has 62 reviewed security advisories in the GitHub Advisory Database — 5 critical, 47 high, 10 moderate. The most recent was published 2026-10-27. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the gitpython versions running across your servers, containers and images, and ranks what to patch first.
How to fix gitpython
Upgrade gitpython to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade gitpython (pin gitpython>=3.2.0)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (62)
GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-78679)
High CWE-200 CWE-73 CWE-88
— Affected: before 3.2.0. Fixed in 3.2.0. Published 2026-10-27. GHSA-23mf-xhv8-69c2 · CVE-2026-110859
GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command execution
High 8.1 CWE-78 CWE-88
— Affected: from 3.1.30 up to 3.2.0. Fixed in 3.2.0. Published 2026-10-27. GHSA-f9j4-qggq-h239 · CVE-2026-110858
GitPython: separate_git_dir leaks env vars via crafted .gitmodules submodule name
Moderate 6.5 CWE-200
— Affected: before 3.2.0. Fixed in 3.2.0. Published 2026-10-27. GHSA-fx3j-rwgx-fr94 · CVE-2026-110855
GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktree
Moderate CWE-22 CWE-59
— Affected: before 3.2.0. Fixed in 3.2.0. Published 2026-10-27. GHSA-gq48-pqfc-9p58 · CVE-2026-110860
GitPython parse_actor_and_date() is vulnerable to quadratic backtracking on malformed identity lines
High CWE-1333
— Affected: before 3.2.0. Fixed in 3.2.0. Published 2026-10-27. GHSA-m64x-33q8-m5h7 · CVE-2026-110856
GitPython command wrappers omit unsafe protocol and option checks
High 7.5 CWE-1287
— Affected: before 3.2.0. Fixed in 3.2.0. Published 2026-10-27. GHSA-w8jc-g24h-crhw · CVE-2026-110857
GitPython validates a submodule's ".git" path only after cloning into it (RCE)
High 7.5 CWE-696
— Affected: before 3.2.1. Fixed in 3.2.1. Published 2026-10-21. GHSA-83vg-56qc-22m7 · CVE-2026-114145
GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution
High 8.8 CWE-427 CWE-94
— Affected: before 3.1.60. Fixed in 3.1.60. Published 2026-09-30. GHSA-239g-whfq-7xj9 · CVE-2026-87817
GitPython submodule update path traversal can write outside the repository
Moderate CWE-22 CWE-73
— Affected: before 3.1.62. Fixed in 3.1.62. Published 2026-09-30. GHSA-59cr-6r3x-644w · CVE-2026-100689
GitPython: Denial of Service via catastrophic backtracking (ReDoS) in Actor.name_email_regex — commit author/committer field parsing
High 7.5 CWE-1333 CWE-400
— Affected: before 3.1.60. Fixed in 3.1.60. Published 2026-09-30. GHSA-g5vv-9gxw-82hx · CVE-2026-87819
GitPython: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracle
Moderate 6.5 CWE-200 CWE-88
— Affected: from 3.1.59 up to 3.1.60. Fixed in 3.1.60. Published 2026-09-30. GHSA-whh4-5q6c-9v3x · CVE-2026-87818
Duplicate Advisory: Repository content can impersonate the git directory, leading to arbitrary code execution
High 8.8 CWE-94
— Affected: up to and including 3.1.59. No fixed release is listed. Published 2026-09-09. GHSA-2pxq-5vcg-rq29
Duplicate Advisory: Denial of Service via catastrophic backtracking (ReDoS) in Actor.name_email_regex — commit author/committer field parsing
High 7.5 CWE-1333
— Affected: up to and including 3.1.59. No fixed release is listed. Published 2026-09-09. GHSA-qpf5-3wfw-fh7q
Duplicate Advisory: GitPython 3.1.59: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracle
High 6.5 CWE-88
— Affected versions listed in the advisory. No fixed release is listed. Published 2026-09-09. GHSA-rw58-wc66-99g4 · CVE-2026-87818
GitPython: Dormant multi-line git-config values are corrupted into live injected directives (e.g. core.hooksPath) on any unrelated GitConfigParser write, enabling RCE
Critical 9.8 CWE-88 CWE-94
— Affected: before 3.1.59. Fixed in 3.1.59. Published 2026-09-08. GHSA-284h-m62q-gf8w · CVE-2026-78676
GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)
Moderate 6.5 CWE-200 CWE-88
— Affected: before 3.1.59. Fixed in 3.1.59. Published 2026-09-08. GHSA-3wxw-xv34-2frg · CVE-2026-78679
GitPython: Incomplete unsafe_git_revision_options denylist omits --contents/-S, enabling arbitrary file read via Repo.blame()
Moderate 6.5 CWE-200 CWE-88
— Affected: before 3.1.59. Fixed in 3.1.59. Published 2026-09-08. GHSA-5xxx-qhh7-9287 · CVE-2026-78678
GitPython: Arbitrary local file content disclosure via [include] directive in untrusted .gitmodules (SubmoduleConfigParser never disables merge_includes)
High 8.4 CWE-200 CWE-73
— Affected: before 3.1.59. Fixed in 3.1.59. Published 2026-09-08. GHSA-7833-fr7j-v32q · CVE-2026-78675
GitPython: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destination
High 7.5 CWE-22 CWE-73
— Affected: before 3.1.59. Fixed in 3.1.59. Published 2026-09-08. GHSA-8mcc-hrx5-hvxc · CVE-2026-78677
Duplicate Advisory: GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)
High 6.5 CWE-73
— Affected: up to and including 3.1.58. No fixed release is listed. Published 2026-08-25. GHSA-6rj2-96f5-chj9
Duplicate Advisory: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destination
High 7.5 CWE-22
— Affected: up to and including 3.1.58. No fixed release is listed. Published 2026-08-25. GHSA-7r39-6q8m-qw68
Duplicate Advisory: GitPython: Incomplete unsafe_git_revision_options denylist omits --contents/-S, enabling arbitrary file read via Repo.blame()
High 6.5 CWE-88
— Affected: up to and including 3.1.58. No fixed release is listed. Published 2026-08-25. GHSA-89ff-m8wv-p99r
Duplicate Advisory: Dormant multi-line git-config values are corrupted into live injected directives (e.g. core.hooksPath) on any unrelated GitConfigParser write, enabling RCE
Critical 9.8 CWE-88
— Affected: up to and including 3.1.58. No fixed release is listed. Published 2026-08-25. GHSA-9557-234j-7rv9
Duplicate Advisory: Arbitrary local file content disclosure via [include] directive in untrusted .gitmodules (SubmoduleConfigParser never disables merge_includes)
High 8.4 CWE-73
— Affected: up to and including 3.1.58. No fixed release is listed. Published 2026-08-25. GHSA-crmc-f4m7-33fj
Duplicate Advisory: GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks
High 7.5 CWE-88
— Affected: up to and including 3.1.57. No fixed release is listed. Published 2026-08-19. GHSA-298h-jpq4-m665
Duplicate Advisory: GitPython: Arbitrary Git Repository Creation Outside the Working Tree via Unvalidated .gitmodules Submodule Name in GitPython
High 8.2 CWE-22
— Affected: up to and including 3.1.57. No fixed release is listed. Published 2026-08-19. GHSA-3vrx-526r-64rm
Duplicate Advisory: GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite
High 8.1 CWE-88
— Affected: up to and including 3.1.57. No fixed release is listed. Published 2026-08-19. GHSA-7jx3-jqcp-hhgc
Duplicate Advisory: GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()
High 6.5 CWE-73
— Affected: up to and including 3.1.57. No fixed release is listed. Published 2026-08-19. GHSA-w672-239g-c3gr
Duplicate Advisory: GitPython: Unsafe git option guard bypass via split_single_char_options=False short-option token smuggling enables command execution
High 8.8 CWE-88
— Affected: up to and including 3.1.57. No fixed release is listed. Published 2026-08-19. GHSA-wv46-xpj8-pw53
GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite
High 8.1 CWE-88
— Affected: before 3.1.58. Fixed in 3.1.58. Published 2026-08-07. GHSA-4gmw-gg2m-w46p · CVE-2026-76219
GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks
High 7.5 CWE-88 CWE-94
— Affected: before 3.1.58. Fixed in 3.1.58. Published 2026-08-07. GHSA-9rj7-rf2p-w77r · CVE-2026-76218
GitPython: Arbitrary file read via --pathspec-from-file in IndexFile.remove() and Head.checkout()
Moderate 6.5 CWE-200 CWE-73
— Affected: before 3.1.58. Fixed in 3.1.58. Published 2026-08-07. GHSA-hh9p-6wh2-4mfc · CVE-2026-76217
GitPython: Arbitrary Git Repository Creation Outside the Working Tree via Unvalidated .gitmodules Submodule Name in GitPython
High 8.2 CWE-22 CWE-73
— Affected: before 3.1.58. Fixed in 3.1.58. Published 2026-08-07. GHSA-hmq2-w58f-27jc · CVE-2026-76222
GitPython: git-config OPTION-name injection via =/#/whitespace bypasses name validator, enabling forged core.sshCommand/hooksPath (RCE)
High 8.8 CWE-74 CWE-88
— Affected: before 3.1.58. Fixed in 3.1.58. Published 2026-08-07. GHSA-jm78-9fvv-mhgr · CVE-2026-76221
GitPython: Unsafe git option guard bypass via split_single_char_options=False short-option token smuggling enables command execution
High 8.8 CWE-88
— Affected: before 3.1.58. Fixed in 3.1.58. Published 2026-08-07. GHSA-wvpp-8hx9-p66j · CVE-2026-76220
GitPython: Unguarded git option forwarding in IndexFile.checkout() and TagReference.create() enables arbitrary file overwrite and arbitrary file read
High 8.1 CWE-200 CWE-22 CWE-73
— Affected: before 3.1.57. Fixed in 3.1.57. Published 2026-08-03. GHSA-3f7w-8rr8-f37f · CVE-2026-73620
GitPython: Incomplete unsafe_git_archive_options denylist omits --add-file / --add-virtual-file, enabling arbitrary file read via Repo.archive()
Moderate 6.5 CWE-200 CWE-73
— Affected: before 3.1.57. Fixed in 3.1.57. Published 2026-08-03. GHSA-539m-9xh6-q6rr · CVE-2026-73619
Duplicate Advisory: GitPython: git-config section-name injection enables arbitrary config directives (core.sshCommand RCE)
High 7.0 CWE-74
— Affected: before 3.1.53. Fixed in 3.1.53. Published 2026-08-03. GHSA-9xx9-hw38-h2w9
GitPython: Arbitrary file truncation via git rev-list --output argument injection in unguarded Commit.count
Moderate 5.4 CWE-88
— Affected: before 3.1.56. Fixed in 3.1.56. Published 2026-08-03. GHSA-p538-c434-8v24 · CVE-2026-73621
Duplicate Advisory: GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.blame()`
High 8.4 CWE-77
— Affected: up to and including 3.1.50. No fixed release is listed. Published 2026-08-01. GHSA-4vpg-pfj8-m33q
Duplicate Advisory: GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklist
High 8.8 CWE-78
— Affected: up to and including 3.1.50. No fixed release is listed. Published 2026-08-01. GHSA-6r2r-ww24-7h52
Duplicate Advisory: GitPython unsafe clone option gate bypass through joined short options
Critical 9.8 CWE-78
— Affected versions listed in the advisory. No fixed release is listed. Published 2026-08-01. GHSA-cw2r-r7mw-j3hc
Duplicate Advisory: GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL
High 7.5 CWE-200
— Affected: up to and including 3.1.51. No fixed release is listed. Published 2026-08-01. GHSA-m4f3-g4cq-hqrx
GitPython: git-config section-name injection enables arbitrary config directives (core.sshCommand RCE)
High 7.0 CWE-74
— Affected: before 3.1.53. Fixed in 3.1.53. Published 2026-07-24. GHSA-3rp5-jjmw-4wv2 · CVE-2026-69097
GitPython: Incomplete unsafe_git_clone_options denylist omits --template enabling arbitrary command execution via clone hooks
High 7.5 CWE-184 CWE-78
— Affected: before 3.1.54. Fixed in 3.1.54. Published 2026-07-24. GHSA-6p8h-3wgx-97gf · CVE-2026-73623
GitPython: Environment-variable exfiltration via Repo.create_remote() / Remote.add() URL (incomplete fix of GHSA-rwj8-pgh3-r573)
High 7.5 CWE-200 CWE-214
— Affected: before 3.1.55. Fixed in 3.1.55. Published 2026-07-24. GHSA-94p4-4cq8-9g67 · CVE-2026-73622
GitPython: Arbitrary file overwrite via git diff --output argument injection in Diffable.diff (key- and value-controlled)
High 8.1 CWE-88
— Affected: before 3.1.54. Fixed in 3.1.54. Published 2026-07-24. GHSA-fjr4-x663-mwxc · CVE-2026-73624
GitPython: Unsafe git option guard bypass via single-character kwarg value token smuggling enables arbitrary command execution
High 8.8 CWE-78 CWE-88
— Affected: before 3.1.54. Fixed in 3.1.54. Published 2026-07-24. GHSA-r9mr-m37c-5fr3 · CVE-2026-73625
GitPython: Command Injection via git long-option prefix abbreviation bypass of CVE-2026-42215 blocklist
High 8.8 CWE-184 CWE-78
— Affected: before 3.1.51. Fixed in 3.1.51. Published 2026-07-21. GHSA-2f96-g7mh-g2hx · CVE-2026-67325
GitPython: command injection via unguarded Git options in `Repo.archive()`, `git.ls_remote()`, and arbitrary file overwrite via `Repo.iter_commits()` / `Repo.blame()`
High 8.4 CWE-77 CWE-88
— Affected: before 3.1.51. Fixed in 3.1.51. Published 2026-07-21. GHSA-956x-8gvw-wg5v · CVE-2026-67323
GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL
High 7.5 CWE-200 CWE-201
— Affected: before 3.1.52. Fixed in 3.1.52. Published 2026-07-21. GHSA-rwj8-pgh3-r573 · CVE-2026-67322
GitPython unsafe clone option gate bypass through joined short options
High CWE-78
— Affected: from 3.1.50 up to 3.1.51. Fixed in 3.1.51. Published 2026-07-21. GHSA-v396-v7q4-x2qj · CVE-2026-67324
GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPath
High 7.0 CWE-20
— Affected: before 3.1.50. Fixed in 3.1.50. Published 2026-05-08. GHSA-mv93-w799-cj2w · CVE-2026-67326
GitPython reference APIs has a path traversal vulnerability that allows arbitrary file write and delete outside the repository
High 7.1 CWE-22
— Affected: before 3.1.48. Fixed in 3.1.48. Published 2026-05-07. GHSA-7545-fcxq-7j24 · CVE-2026-44243
GitPython has Command Injection via Git options bypass
High 8.8 CWE-78
— Affected: from 3.1.30 up to 3.1.47. Fixed in 3.1.47. Published 2026-05-07. GHSA-rpm5-65cw-6hj4 · CVE-2026-42215
GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
High 7.8 CWE-94
— Affected: before 3.1.49. Fixed in 3.1.49. Published 2026-05-07. GHSA-v87r-6q3f-2j67 · CVE-2026-44244
GitPython: Unsafe option check validates multi_options before shlex.split transformation
High 8.1 CWE-88
— Affected: before 3.1.47. Fixed in 3.1.47. Published 2026-05-07. GHSA-x2qx-6953-8485 · CVE-2026-42284
Untrusted search path under some conditions on Windows allows arbitrary code execution
High 7.8 CWE-426
— Affected: before 3.1.41. Fixed in 3.1.41. Published 2024-01-11. GHSA-2mqj-m65w-jghx · CVE-2024-22190
GitPython blind local file inclusion
Moderate 4.0 CWE-22
— Affected: before 3.1.37. Fixed in 3.1.37. Published 2023-08-30. GHSA-cwvm-v4w8-q58c · CVE-2023-41040
GitPython untrusted search path on Windows systems leading to arbitrary code execution
High 7.8 CWE-426
— Affected: before 3.1.33. Fixed in 3.1.33. Published 2023-08-28. GHSA-wfm5-v35h-vwf4 · CVE-2023-40590
GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments
Critical 9.8 CWE-78
— Affected: before 3.1.32. Fixed in 3.1.32. Published 2023-08-11. GHSA-pr76-5cm5-w9cj · CVE-2023-40267
GitPython vulnerable to Remote Code Execution due to improper user input validation
Critical 8.1 CWE-20 CWE-94
— Affected: before 3.1.30. Fixed in 3.1.30. Published 2022-12-06. GHSA-hcpj-qp55-gfph · CVE-2022-24439
Find gitpython across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.