Multiple security vulnerabilities were discovered in python-git (GitPython), a Python library used to interact with git repositories. These issues could result in arbitrary command execution, path traversal with arbitrary file read or write, git config injection, leaking of secrets through environment variable expansion or denial of service (ReDoS).
CVE-2026-42215
Unsafe options passed as underscored keyword arguments were not
blocked, which could lead to command execution.
CVE-2026-44243
When manipulating references, access to files outside the repository
was not prevented, allowing arbitrary file access.
CVE-2026-44244
The config writer did not reject control characters in config values,
allowing config injection.
CVE-2026-67323
Unsafe options (--exec, --upload-pack, ...) were not guarded in the
archive, fetch, pull, push, ls-remote, blame and revision APIs, which
could lead to command execution.
CVE-2026-67324
Abbreviated long options bypassed the unsafe option checks, leading to
command execution.
CVE-2026-67325
Joined short options bypassed the unsafe option checks, leading to
command execution.
CVE-2026-67326
Config section names were not validated before writing, allowing
config injection.
CVE-2026-69097
Config section names containing an unquoted closing bracket could
inject arbitrary settings into .git/config.
CVE-2026-73619
The --add-file, --add-virtual-file (archive) and --bundle-uri (clone)
options were missing from the unsafe option lists, which could lead to
command execution or arbitrary file access.
CVE-2026-73620
Unsafe options in IndexFile.checkout() (--prefix) and
TagReference.create() (-F/--file) were not blocked, which could write
to or read from arbitrary filesystem paths.
CVE-2026-73621
Unsafe output options were not rejected in Commit.count, which could
write to arbitrary filesystem paths.
CVE-2026-73623
The unsafe --template option was not rejected when cloning, which
could read from arbitrary filesystem paths.
CVE-2026-73624
Unsafe output options were not guarded in diff operations, which could
write to arbitrary filesystem paths.
CVE-2026-73625
The values of split short options were not validated, which could
bypass the unsafe option checks in clone, remote, revision, blame and
archive operations.
CVE-2026-76217
The --pathspec-from-file options were not guarded in IndexFile.remove,
Head.checkout and HEAD.reset, which could read from arbitrary
filesystem paths.
CVE-2026-76218
Unsafe git init options (--template, --separate-git-dir) were not
guarded in Repo.init, which could read from or write to arbitrary
filesystem paths.
CVE-2026-76219
The --index-output option was not guarded in read-tree calls made by
from_tree, merge_tree and reset, which could write to an arbitrary
path.
CVE-2026-76220
The value joined to one-character options was not checked when
split_single_char_options is false, which could bypass the unsafe
option checks.
CVE-2026-76221
Config option names containing characters that could inject arbitrary
settings when writing the config were not rejected.
CVE-2026-76222
Submodule names read from .gitmodules were not validated before
filesystem operations, allowing path traversal outside the repository.
CVE-2026-78675
Include directives in .gitmodules were processed, which could read
arbitrary files.
CVE-2026-78676
Multiline config values were not preserved when writing, which could
inject new options into the config.
CVE-2026-78677
The --separate-git-dir option was not blocked in Repo.clone() and
Repo.clone_from(), which could write repository metadata to an
arbitrary path.
CVE-2026-78678, CVE-2026-78679
File-reading options were not blocked in blame, diff and tag APIs,
which could read arbitrary files.
CVE-2026-87817
Repository discovery did not prefer the .git entry nor validate
candidate git directories, diverging from git's behaviour.
CVE-2026-87818
The --no-index option was not treated as an unsafe diff option, which
allowed diffing arbitrary filesystem paths.
CVE-2026-87819
Actor identities were parsed with regular expressions, allowing
quadratic backtracking (ReDoS) on malformed identities.
CVE-2026-100689
Submodule checkout paths that resolve outside the repository or
through a symbolic link were not rejected in Submodule.update, unlike
in add and move.
CVE-2026-110856
Actor identities and dates in commit authors, committers and taggers
were parsed with backtracking regular expressions, allowing excessive
CPU use (ReDoS) on malformed metadata.
CVE-2026-110857
The unsafe option and protocol checks were incomplete in
Git.ls_remote(), Repo.merge_base() and IndexFile.move(), which omitted
guards already used by sibling APIs.
CVE-2026-110858
Option-shaped remote names were not rejected in Remote.update(), which
git forwards to "fetch --multiple" without an option terminator,
allowing a leading-dash name to change the requested operation.
CVE-2026-110859
The positional reference passed by Head.checkout() was not validated
against the unsafe-option policy, so reference names originating in a
cloned repository could bypass it.
CVE-2026-110860
Submodule checkout, move and metadata paths that traverse intermediate
symbolic links were not rejected before performing filesystem
operations.
CVE-2026-114145
GitPython validated a submodule's '.git' path only after cloning into
it, which could lead to remote code execution.
For Debian 10 buster, these problems have been fixed in version 2.1.11-1+deb10u3.
We recommend that you upgrade your python-git packages.
Further information about Extended LTS security advisories can be found in the dedicated section of our website.