← Vulnerability feed

Vulnerability record · CVE-2026-44244 · published 7 May 2026

CVE-2026-44244: Gitpython project gitpython code injection vulnerability

Gitpython Project · Gitpython

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.

7.8 CVSS 3.1 High EPSS 0.22% · top 89.0% CWE-94 · Code injection
7.8CVSS 3.1 base score
0.22%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-44244 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-42284Gitpython project gitpython argument injection vulnerabilityGitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list,…EPSS 0.71%9.8CVE-2023-40267Gitpython project gitpython vulnerabilityGitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from. NOTE: this issue exists because of an incomplete fix for C…EPSS 1.2%9.8CVE-2022-24439Gitpython project gitpython improper input validation vulnerabilityAll versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inj…EPSS 5.7%9.3CVE-2026-78676Gitpython project gitpython argument injection vulnerabilityGitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into inje…EPSS 0.78%9.3CVE-2026-67324Gitpython project gitpython os command injection vulnerabilityGitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default …EPSS 0.64%8.8CVE-2026-42215Gitpython project gitpython os command injection vulnerabilityGitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git op…EPSS 0.90%8.7CVE-2026-87819Gitpython project gitpython inefficient regular expression (redos) vulnerabilityGitPython before 3.1.60 contains a regular expression denial of service vulnerability in Actor.name_email_regex that processes commit author and comm…EPSS 0.52%8.7CVE-2026-87817Gitpython project gitpython code injection vulnerabilityGitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked file…EPSS 0.40%

Source: NIST National Vulnerability Database (record CVE-2026-44244), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.