CVE-2026-76220

8.8

GitPython · GitPython

GitPython contains an argument injection vulnerability that can be exploited to execute arbitrary commands when processing untrusted inputs.

Executive summary

An argument injection vulnerability in GitPython allows for arbitrary command execution, presenting a critical risk to applications integrating this library.

Vulnerability

The library is vulnerable to argument injection (CWE-88) due to improper handling of command delimiters. This allows an attacker to manipulate command-line arguments, leading to unintended command execution.

Business impact

Applications relying on GitPython for repository management are at risk of remote code execution. If an attacker can control the inputs passed to the library, they may be able to execute arbitrary commands on the server hosting the application, leading to a complete system compromise. The CVSS score of 8.8 accurately reflects the high impact of this vulnerability on system security.

Remediation

Immediate Action: Update the GitPython package to version 3.1.58 or later to incorporate the necessary security fixes.

Proactive Monitoring: Monitor application logs for unusual Git-related command patterns or unexpected system calls originating from the application process.

Compensating Controls: Sanitize all user-provided inputs before passing them to GitPython functions and enforce strict input validation policies.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

Developers should prioritize updating GitPython to version 3.1.58 immediately. Given the nature of argument injection in a core library, the potential for widespread impact across dependent applications is significant, and standard patch management cycles should be expedited for this component.

More GitPython CVEs