CVE-2026-44244

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

History

No history.

Information

Published : 2026-05-07 19:16

Updated : 2026-06-17 10:50


NVD link : CVE-2026-44244

Mitre link : CVE-2026-44244

CVE.ORG link : CVE-2026-44244


JSON object : View

Products Affected

gitpython_project

  • gitpython
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')