Vulnerability
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.
24 advisories report this vulnerability, across 8 ecosystems.
Advisories
- CGA-2375-858m-43vv
- CGA-8crh-m244-369r
- CGA-96rq-97g4-wg88
- CGA-c9v9-fjmv-7v82
- CGA-ff65-mrgr-cpfc
- CGA-fw6v-m433-2j58
- CGA-jvf2-6rrg-x93g
- CGA-qmph-6fq2-6chq
- CGA-wqvv-75jc-7cg9
-
DEBIAN-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()…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-v87r-6q3f-2j67
GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
-
OESA-2026-2306
python-GitPython security update
-
OESA-2026-2307
python-GitPython security update
-
OESA-2026-2308
python-GitPython security update
-
PYSEC-2026-2163
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()…
-
RHSA-2026:42078
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
-
RHSA-2026:42079
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
-
RHSA-2026:63385
Red Hat Security Advisory: Satellite 6.19.4 Async Update
-
SUSE-SU-2026:4072-1
Security update for python-GitPython
-
UBUNTU-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()…
-
USN-8303-1
python-git vulnerabilities
-
openSUSE-SU-2026:10758-1
python311-GitPython-3.1.49-1.1 on GA media