Gitpython Developers vulnerabilities
42 vulnerabilities
Known vulnerabilities in Gitpython Developers products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 1 product.
Products
1- Gitpython42 vulnerabilities
RoutineCVE-2026-114145gitpython-developers · gitpython +14 moreGitPython validates a submodule's ".git" path only after cloning into it (RCE)GitPython is a python library used to interact with Git repositories. Prior to 3.2.1, create_submodule() in git/objects/submodule/base.py accepts an attacker-influenced submodule path such as .git/hooks and invokes _clone_repo() before safely rejecting the destination. In 3.1.x, _validate_repo_path() does not exist and the call succeeds silently, while in 3.2.0 and later affected revisions the check in git/index/base.py raises ValueError only after the clone has written to disk and does not remove the planted file. An attacker-controlled submodule can therefore place an executable post-checkout hook that a later Git operation executes. Exploitation requires an application to accept an untrusted submodule path and a clone destination such as .git/hooks that is empty enough for Git to clone into it, which commonly means that default sample hooks are absent. This issue is fixed in version 3.2.1.CVSS7.5HighEPSS0.42%RoutineCVE-2026-110860gitpython-developers · gitpython +3 moreGitPython 3.1.62 before 3.2.0 Symlink Path Traversal via Submodule.move()GitPython from 3.1.62 before 3.2.0 contains a symlink-following flaw in Submodule.move(), which checks the destination only lexically and does not reject symbolic links in intermediate path components. An untrusted repository can commit a symlink such as vendor pointing outside the worktree, so an application moving an initialized submodule beneath it relocates the checkout externally and corrupts the index and .gitmodules.CVSS6.9MediumEPSS0.19%PrioritiseCVE-2026-110859gitpython-developers · gitpython +3 moreGitPython before 3.2.0 Arbitrary File Read via Head.checkout() Branch NameGitPython before 3.2.0 contains an argument injection vulnerability in Head.checkout() that allows remote attackers to read arbitrary files by supplying a branch name parsed as a git option. Attackers can host a repository whose default branch is named --pathspec-from-file=<path>, causing cloning applications that check out the active branch to leak file contents through GitCommandError messages.CVSS8.7HighEPSS0.39%PrioritiseCVE-2026-110858gitpython-developers · gitpython +4 moreGitPython 3.1.30 before 3.2.0 Command Injection via Remote.pull() RefspecGitPython from 3.1.30 before 3.2.0 contains a remote code execution vulnerability in Remote.pull() whose unsafe-option guard inspects only keyword arguments, not the positional refspec. Attackers controlling the refspec can supply --upload-pack=<command> to execute OS commands as the calling process over local-path or SSH transports.CVSS9.2CriticalEPSS0.61%RoutineCVE-2026-110857gitpython-developers · gitpython +3 moreGitPython before 3.2.0 Command Execution via ls_remote ext:: URLsGitPython before 3.2.0 contains a remote code execution vulnerability that allows attackers to run commands because Git.ls_remote forwards URLs without check_unsafe_protocols validation. Attackers can supply ext:: remote-helper URLs to execute commands when git permits the ext transport, while merge_base and IndexFile.move also accept unguarded option injection.CVSS7.7HighEPSS0.42%PrioritiseCVE-2026-110856gitpython-developers · gitpython +3 moreGitPython before 3.2.0 ReDoS via _re_actor_epoch in parse_actor_and_dateGitPython before 3.2.0 contains a regular expression denial of service vulnerability in the _re_actor_epoch pattern used by parse_actor_and_date on author, committer, and tagger lines. Attackers can serve repositories with commit or tag objects containing long space-filled lines lacking a valid epoch or timezone, causing quadratic backtracking and CPU exhaustion.CVSS8.7HighEPSS0.28%RoutineCVE-2026-110855gitpython-developers · gitpython +3 moreGitPython before 3.2.0 Environment Variable Disclosure via .gitmodules Submodule NameGitPython before 3.2.0 contains an information disclosure vulnerability that allows malicious repositories to expand environment variables via separate_git_dir in Repo._clone(), which omits expand_vars=False when calling Git.polish_url(). Attackers can craft a .gitmodules submodule name containing variable syntax so that clone plus submodule_update exposes secrets in .git/modules directory names and DEBUG logs.CVSS7.1HighEPSS0.24%PrioritiseCVE-2026-100689gitpython-developers · gitpython +4 moreGitPython before 3.1.62 Path Traversal via gitmodules pathGitPython before 3.1.62 does not validate the `path` field read from an untrusted .gitmodules file when updating submodules. While a prior fix (GHSA-hmq2-w58f-27jc) added Submodule._validated_name() to constrain the `name` field, and GitPython's own containment guard Submodule._to_relative_path() is applied in add() and move(), Submodule.update() derives the absolute checkout location from the raw `path` value without that guard. A .gitmodules entry containing directory traversal components (e.g., path = ../../../tmp/escaped) can therefore cause directories to be created via os.makedirs() outside the repository working tree, populated from the submodule URL on the clone path, and removed via shutil.rmtree() when force_remove is used. Exploitation requires an application flow that updates submodules at a non-HEAD commit (such as a historical-commit API); the common clone-then-update flow re-derives the path from a canonical tree lookup and is not affected. The issue is fixed in GitPython 3.1.62.CVSS8.7HighEPSS0.40%PrioritiseCVE-2026-87819gitpython-developers · gitpython +12 moreGitPython before 3.1.60 Denial of Service via ReDoSGitPython before 3.1.60 contains a regular expression denial of service vulnerability in Actor.name_email_regex that processes commit author and committer fields. Attackers can craft a commit object with a malformed author field containing an unterminated angle bracket to cause quadratic backtracking, exhausting CPU resources for over two minutes per commit access.CVSS8.7HighEPSS0.42%PrioritiseCVE-2026-87818gitpython-developers · gitpython +4 moreGitPython 3.1.59 Local File Content Oracle via --no-indexGitPython 3.1.59 fails to restrict the --no-index option in the high-level diff API, allowing attackers to read arbitrary filesystem paths as repository operands. Attackers can combine --no-index with -I/--ignore-matching-lines to create a content-dependent Boolean oracle, repeatedly querying local files to recover single-line secrets through distinguishable success or error responses.CVSS7.1HighEPSS0.29%PrioritiseCVE-2026-87817gitpython-developers · gitpython +10 moreGitPython before 3.1.60 Remote Code Execution via Git Directory ImpersonationGitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.CVSS8.8HighEPSS0.42%RoutineCVE-2026-78679gitpython-developers · gitpython +4 moreGitPython before 3.1.59 Arbitrary File Read via TagReference.createGitPython before 3.1.59 contains an arbitrary file read vulnerability in TagReference.create() where a positional reference parameter bypasses the unsafe option guard. Attackers can supply a reference value like --file=<path> to read arbitrary files, with contents returned in the annotated tag message.CVSS7.1HighEPSS0.34%PrioritiseCVE-2026-78678gitpython-developers · gitpython +6 moreGitPython before 3.1.59 Arbitrary File Read via Repo.blame()GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to Repo.blame(). Attackers can supply revision values like --contents=/etc/passwd to leak file contents through the blame result returned to the caller.CVSS7.1HighEPSS0.30%PrioritiseCVE-2026-78677gitpython-developers · gitpython +6 moreGitPython before 3.1.59 Path Traversal via separate-git-dirGitPython before 3.1.59 omits --separate-git-dir from unsafe_git_clone_options, allowing attackers to create arbitrary git directories outside the intended clone destination. Attackers can pass a separate_git_dir parameter to Repo.clone_from() or Repo.clone() to redirect repository metadata to an attacker-controlled filesystem path, enabling arbitrary directory creation and potential hook execution.CVSS8.7HighEPSS0.51%PrioritiseCVE-2026-78676gitpython-developers · gitpython +6 moreGitPython before 3.1.59 Remote Code Execution via Config InjectionGitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into injected directives like core.hooksPath. Attackers can craft config files with embedded newlines that become live git directives after any unrelated GitPython config write, enabling arbitrary code execution via hook invocation.CVSS9.8CriticalEPSS0.56%PrioritiseCVE-2026-78675gitpython-developers · gitpython +6 moreGitPython before 3.1.59 Local File Content Disclosure via .gitmodulesGitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file paths via [include] directives. Attackers can craft a malicious .gitmodules file with include directives pointing to sensitive files; when repo.submodules is accessed, GitConfigParser raises MissingSectionHeaderError embedding the target file's first line verbatim in the exception message.CVSS8.6HighEPSS0.17%PrioritiseCVE-2026-76222gitpython-developers · gitpython +11 moreGitPython before 3.1.58 Path Traversal via .gitmodules Submodule NameGitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.CVSS8.4HighEPSS0.33%PrioritiseCVE-2026-76221gitpython-developers · gitpython +5 moreGitPython before 3.1.58 Config Injection via option-nameGitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace into option names. Attackers can inject malicious option names like 'sshCommand = touch /tmp/RCE #' to execute arbitrary commands via core.sshCommand or core.hooksPath on the next git operation.CVSS8.8HighEPSS0.48%PrioritiseCVE-2026-76220gitpython-developers · gitpython +11 moreGitPython before 3.1.58 Command Execution via split_single_char_optionsGitPython before 3.1.58 contains a command execution vulnerability in the check_unsafe_options guard that can be bypassed by combining a single-character kwarg with split_single_char_options=False. Attackers can supply a crafted kwargs dictionary to guarded methods like clone_from to emit a joined token parsed as --upload-pack, enabling arbitrary OS command execution at default allow_unsafe_options=False.CVSS8.8HighEPSS0.59%PrioritiseCVE-2026-76219gitpython-developers · gitpython +11 moreGitPython before 3.1.58 Arbitrary File Overwrite via read-treeGitPython versions before 3.1.58 contain an arbitrary file overwrite vulnerability in IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods that append caller-influenced treeish strings to git read-tree without option validation or argument separation. Attackers can inject the --index-output option to overwrite arbitrary files with a valid git-index blob, destroying existing file content at attacker-controlled writable paths.CVSS8.1HighEPSS0.30%