CVE-2026-76221

8.8

GitPython · GitPython

GitPython is vulnerable to a configuration injection attack, allowing a low privileged attacker to execute unauthorized commands by manipulating option names.

Executive summary

A vulnerability in GitPython allows authenticated attackers to perform configuration injection, potentially leading to unauthorized command execution.

Vulnerability

This is an improper neutralization of special elements in output (CWE-74) vulnerability. It allows a low privileged attacker to inject malicious Git configuration options, which can be interpreted by the underlying system.

Business impact

The exploitation of this flaw can lead to a full compromise of the application environment, as the attacker can manipulate configuration parameters to execute arbitrary commands. With a CVSS score of 8.8, this represents a high risk to data integrity and system availability, potentially leading to unauthorized access to sensitive repositories or host infrastructure.

Remediation

Immediate Action: Update the GitPython package to version 3.1.58 or later to incorporate the upstream fix.

Proactive Monitoring: Review application logs for unusual Git command-line invocations or unexpected configuration changes.

Compensating Controls: Ensure the application runs with the least privilege necessary, minimizing the impact if command execution occurs.

Exploitation status

Public Exploit Available: No.

Analyst recommendation

Given the high severity of this vulnerability, administrators should prioritize updating the GitPython library immediately. Failure to patch allows authenticated users to potentially escalate their access and compromise the integrity of the host system.

More GitPython CVEs