DEBIAN-CVE-2026-87817

    Dashboard / Vulnerabilities / DEBIAN-CVE-2026-87817

    DEBIAN-CVE-2026-87817

    Published: 9 Sept 2026Last Modified: 11 Sept 2026
    Upstream:

    Summary:

    Details: 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.

    Affected packages

    Package

    Name: python-git

    Purl: pkg:deb/debian/python-git?arch=source&distro=bookworm

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    3.1.30-1
    3.1.30-1+deb12u2
    3.1.36-1
    3.1.37-1
    3.1.37-2
    3.1.37-3
    3.1.44-1
    3.1.45-1
    3.1.46-1
    3.1.50-1
    3.1.61-1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    DEBIAN-CVE-2026-87817 | CVE-DB