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

11 May 2026, 17:44

Type Values Removed Values Added
References () https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49 - () https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49 - Patch, Release Notes
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67 - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67 - Exploit, Mitigation, Vendor Advisory
First Time Gitpython Project gitpython
Gitpython Project
CPE cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

07 May 2026, 21:16

Type Values Removed Values Added
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67 - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67 -

07 May 2026, 19:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-07 19:16

Updated : 2026-05-11 17:44


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')