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…
- CVSS
- 7.8High
- Chance of exploitation (EPSS)
- —
- Published
- May 7, 2026
- In the news
- Not yet
What to do
A serious code injection flaw in Gitpython that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 3.1.49
Affected versions
- Gitpython
- Before 3.1.49; < 3.1.49
Description
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.
Affected products
Get alerts for these →Timeline 4
Latest change: Tenable Cloud Security plugin 457081: Echo: python-git: security update to 3.1.49 (Nov 19, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, Nov 20, 2026
Sat, Oct 31, 2026
Thu, May 7, 2026
- CVECVE-2026-44244 published (CVSS 7.8)CVE Program · 19:16 UTC
References 3
- github.com Patch /gitpython-developers/GitPython/releases/tag/3.1.49
- github.com ExploitMitigationVendor Advisory /gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67
- github.com ExploitMitigationVendor Advisory /gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67