CVE Catalog

CVE-2026-44244

High
Published: Translated: NVD NIST

Summary

GitPython is a Python library used to interact with Git repositories. In versions prior to 3.1.49, the GitConfigParser.set_value() method did not validate values for newlines, allowing for the injection of malicious paths into Git configuration.

Risk Assessment

An attacker could exploit this vulnerability to execute scripts from a path they control during Git operations, posing a serious security risk to the system.

Recommendation

It is recommended to update GitPython to version 3.1.49 or later to mitigate this vulnerability.

Other vulnerabilities in GitPython

See all
Original NVD description (English source)

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.49, GitConfigParser.set_value() passes values to Python's configparser without validating for newlines. GitPython's own _write() converts embedded newlines into indented continuation lines (e.g. \n becomes \n\t), but Git still accepts an indented [core] stanza as a section header — so the injected core.hooksPath becomes effective configuration. Any Git operation that invokes hooks (commit, merge, checkout) will then execute scripts from the attacker-controlled path. This issue has been patched in version 3.1.49.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS