Arbitrary Code Injection Affecting gitpython package, versions [,3.1.49)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.24% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-GITPYTHON-16438980
  • published7 May 2026
  • disclosed6 May 2026
  • creditDan Aridor

Introduced: 6 May 2026

CVE-2026-44244  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade GitPython to version 3.1.49 or higher.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Arbitrary Code Injection via the set_value function. An attacker can achieve arbitrary code execution by injecting newline characters into configuration values, which allows the creation of malicious Git configuration entries such as core.hooksPath. This enables execution of attacker-controlled scripts during Git operations that invoke hooks.

CVSS Base Scores

version 4.0
version 3.1