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 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) GitPython es una biblioteca de python utilizada para interactuar con repositorios Git. Antes de la versión 3.1.49, GitConfigParser.set_value() pasa valores al configparser de Python sin validar los saltos de línea. El propio _write() de GitPython convierte los saltos de línea incrustados en líneas de continuación indentadas (por ejemplo, \n se convierte en \n\t), pero Git aún acepta una estrofa [core] indentada como encabezado de sección, por lo que el core.hooksPath inyectado se convierte en una configuración efectiva. Cualquier operación de Git que invoque hooks (commit, merge, checkout) ejecutará entonces scripts desde la ruta controlada por el atacante. Este problema ha sido parcheado en la versión 3.1.49.

11 May 2026, 17:44

Type Values Removed Values Added
CPE cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
First Time Gitpython Project gitpython
Gitpython Project
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

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-11-11 23:10


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