CVE-2026-44244 Details
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.
A vulnerability in GitPython's handling of Git configuration values has been identified, prior to version 3.1.49. The issue arises because the 'GitConfigParser.set_value()' method passes values to Python's 'configparser' without validating for newlines. While GitPython's own '_write()' method converts embedded newlines into indented continuation lines, Git accepts an indented '[core]' stanza as a section header. This allows injected values, such as 'core.hooksPath', to become effective configuration. Consequently, any Git operation that triggers hooks, such as commit, merge, or checkout, could execute scripts from a path controlled by an attacker.
Users should update to GitPython version 3.1.49 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49 | [email protected] | PatchRelease Notes |
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gitpython project gitpython | < 3.1.49 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 11, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | Initial Analysis | [email protected] |
| May 7, 2026 | CVE Modified | CISA-ADP |
| May 7, 2026 | New CVE Received | [email protected] |