CVE-2026-44244
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GitPythonPyPI | < 3.1.49 | 3.1.49 |
Affected products
7- osv-coords6 versionspkg:apk/chainguard/awxpkg:apk/chainguard/datahub-ingestion-fipspkg:apk/chainguard/mlflow-fipspkg:apk/chainguard/opalpkg:pypi/gitpythonpkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Tumbleweed
< 24.6.1-r35+ 5 more
- (no CPE)range: < 24.6.1-r35
- (no CPE)range: < 1.5.0.1-r2
- (no CPE)range: < 3.12.0-r0
- (no CPE)range: < 0.9.5-r1
- (no CPE)range: < 3.1.49
- (no CPE)range: < 3.1.49-1.1
Patches
Vulnerability mechanics
References
4- github.com/gitpython-developers/GitPython/releases/tag/3.1.49nvdPatchRelease NotesWEB
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67nvdExploitMitigationVendor AdvisoryWEB
- github.com/advisories/GHSA-v87r-6q3f-2j67ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-44244ghsaADVISORY
News mentions
0No linked articles in our index yet.