Insecure DLL loading in GitPython - CVE-2026-87817

 

Insecure DLL loading in GitPython - CVE-2026-87817

Published: August 26, 2026 / Updated: September 14, 2026


Vulnerability identifier: #VU145796
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-87817
CWE-ID: CWE-427
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to uncontrolled search path resolution in Repo.__init__ and commit hook path handling when opening or cloning a crafted repository and performing index.commit(). A remote attacker can place crafted repository-root files and a malicious hooks/pre-commit script to execute arbitrary code.

User interaction is required to open or clone the crafted repository.


Affected software

GitPython
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Desktop 15
Python 3 Module
openSUSE Leap
python311-GitPython

How to mitigate CVE-2026-87817

Install security update from vendor's website.

GitPython - update to 3.1.60
python311-GitPython - update to 3.1.34.1693646983.2a2ae77-150400.9.11.1

External References

Related Security Bulletins