p PatchFirst

PatchFirst · Latest vulnerabilities

gitpython 3.1.61: known vulnerabilities

The comparison for gitpython 3.1.61 is incomplete. Review the confirmed matches below.

RSS ↗
Filter vulnerabilities
Clear filters

Could not compare 2 records. The results are incomplete.

Vulnerabilities: 2

  1. CVE-2026-114145

    High · CVSS 7.5EPSS 0.26%Public exploitFix available

    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

    • Update to 3.2.1
    Published Updated
  2. CVE-2026-100689

    High · CVSS 8.7EPSS 0.4%Fix available

    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

    • Update to 3.1.62
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →