p PatchFirst

PatchFirst · Aktuelle Sicherheitslücken

gitpython 3.1.55: bekannte Sicherheitslücken

Der Vergleich für gitpython 3.1.55 ist unvollständig. Prüfen Sie die bestätigten Treffer unten.

RSS ↗
Sicherheitslücken filtern
Filter zurücksetzen

2 Einträge konnten nicht verglichen werden. Die Ergebnisse sind unvollständig.

Sicherheitslücken: 18

  1. CVE-2026-114145

    Hoch · CVSS 7.5EPSS 0,26%Öffentlicher ExploitKorrektur verfügbar

    GitPython 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. Exploi

    • Auf 3.2.1 aktualisieren
    Veröffentlicht Aktualisiert
  2. CVE-2026-100689

    Hoch · CVSS 8.7EPSS 0,4%Korrektur verfügbar

    GitPython before 3.1.62 Path Traversal via gitmodules path

    GitPython 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 th

    • Auf 3.1.62 aktualisieren
    Veröffentlicht Aktualisiert
  3. CVE-2026-87819

    Hoch · CVSS 8.7EPSS 0,52%Korrektur verfügbar

    GitPython before 3.1.60 Denial of Service via ReDoS

    GitPython 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.

    • Auf 3.1.60 aktualisieren
    Veröffentlicht Aktualisiert
  4. CVE-2026-87817

    Hoch · CVSS 8.7EPSS 0,4%Öffentlicher ExploitKorrektur verfügbar

    GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation

    GitPython 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.

    • Auf 3.1.60 aktualisieren
    Veröffentlicht Aktualisiert
  5. CVE-2026-78679

    Hoch · CVSS 7.1EPSS 0,26%Korrektur verfügbar

    GitPython before 3.1.59 Arbitrary File Read via TagReference.create

    GitPython 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.

    • Auf 3.1.59 aktualisieren
    Veröffentlicht Aktualisiert
  6. CVE-2026-78678

    Hoch · CVSS 7.1EPSS 0,41%Korrektur verfügbar

    GitPython 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.

    • Auf 3.1.59 aktualisieren
    Veröffentlicht Aktualisiert
  7. CVE-2026-78677

    Hoch · CVSS 8.7EPSS 0,65%Korrektur verfügbar

    GitPython before 3.1.59 Path Traversal via separate-git-dir

    GitPython 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.

    • Auf 3.1.59 aktualisieren
    Veröffentlicht Aktualisiert
  8. CVE-2026-78676

    Kritisch · CVSS 9.3EPSS 0,78%Korrektur verfügbar

    GitPython before 3.1.59 Remote Code Execution via Config Injection

    GitPython 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.

    • Auf 3.1.59 aktualisieren
    Veröffentlicht Aktualisiert
  9. CVE-2026-78675

    Hoch · CVSS 8.6EPSS 0,18%Korrektur verfügbar

    GitPython before 3.1.59 Local File Content Disclosure via .gitmodules

    GitPython 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.

    • Auf 3.1.59 aktualisieren
    Veröffentlicht Aktualisiert
  10. CVE-2026-76222

    Hoch · CVSS 8.4EPSS 0,42%Korrektur verfügbar

    GitPython before 3.1.58 Path Traversal via .gitmodules Submodule Name

    GitPython 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.

    • Auf 3.1.58 aktualisieren
    Veröffentlicht Aktualisiert
  11. CVE-2026-76221

    Hoch · CVSS 8.7EPSS 0,77%Korrektur verfügbar

    GitPython before 3.1.58 Config Injection via option-name

    GitPython 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.

    • Auf 3.1.58 aktualisieren
    Veröffentlicht Aktualisiert
  12. CVE-2026-76220

    Hoch · CVSS 8.7EPSS 0,91%Korrektur verfügbar

    GitPython before 3.1.58 Command Execution via split_single_char_options

    GitPython 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.

    • Auf 3.1.58 aktualisieren
    Veröffentlicht Aktualisiert
  13. CVE-2026-76219

    Hoch · CVSS 7.2EPSS 0,54%Korrektur verfügbar

    GitPython before 3.1.58 Arbitrary File Overwrite via read-tree

    GitPython 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.

    • Auf 3.1.58 aktualisieren
    Veröffentlicht Aktualisiert
  14. CVE-2026-76218

    Hoch · CVSS 7.7EPSS 0,83%Korrektur verfügbar

    GitPython before 3.1.58 Remote Code Execution via Repo.init

    GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.

    • Auf 3.1.58 aktualisieren
    Veröffentlicht Aktualisiert
  15. CVE-2026-76217

    Hoch · CVSS 7.1EPSS 0,41%Korrektur verfügbar

    GitPython before 3.1.58 Arbitrary File Read via pathspec-from-file

    GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul parameters to read arbitrary files accessible to the process, with full file contents returned in GitCommandError.stderr.

    • Auf 3.1.58 aktualisieren
    Veröffentlicht Aktualisiert
  16. CVE-2026-73621

    Mittel · CVSS 5.3EPSS 0,36%Korrektur verfügbar

    GitPython before 3.1.56 Arbitrary File Truncation via Commit.count

    GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling iter_items method. An attacker who can control options passed to Commit.count (e.g., via an application that forwards a user-supplied options dict) can supply output=<path>, causing 'git rev-list --output=<path>' to open and truncate the target file to zero bytes before revision parsing. This allows destruction/blanking of an arbitrary file at the process's privilege level (no content control, 0-byte truncation).

    • Auf 3.1.56 aktualisieren
    Veröffentlicht Aktualisiert
  17. CVE-2026-73620

    Hoch · CVSS 7.2EPSS 0,57%Korrektur verfügbar

    GitPython before 3.1.57 Arbitrary File Overwrite and Read

    GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files returned in-band.

    • Auf 3.1.57 aktualisieren
    Veröffentlicht Aktualisiert
  18. CVE-2026-73619

    Hoch · CVSS 7.1EPSS 0,41%Korrektur verfügbar

    GitPython before 3.1.57 Arbitrary File Read via Repo.archive()

    GitPython before 3.1.57 contains an incomplete denylist in the unsafe_git_archive_options guard that omits --add-file and --add-virtual-file options. Attackers can supply these options to Repo.archive() to read arbitrary files from the filesystem and include them in the returned archive.

    • Auf 3.1.57 aktualisieren
    Veröffentlicht Aktualisiert

Prüfen Sie Ihren Server

Gleichen Sie Ihren installierten Stack und seine Versionen mit den aktuellen Sicherheitsmeldungen ab.

Prüfen Sie Ihren Server →