CVE-2026-44244
GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
Reported by github_m · Published May 7, 2026
GitPython is fixed in 3.1.49 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| GitPython | PyPI | 3.1.49 |
| awx | Chainguard | 24.6.1-r35 |
| datahub-ingestion-fips | Chainguard | 1.5.0.1-r2 |
| opal | Chainguard | 0.9.5-r1 |
| gitpython | gitpython_project | 3.1.49 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | < 3.1.49 |
| chainguard | awx | 0 |
| chainguard | datahub-ingestion-fips | 0 |
| chainguard | opal | 0 |
| gitpython-developers | GitPython | 0 |
| chainguard | mlflow-fips | 0 |
| chainguard | mlflow | 0 |
| PyPI | GitPython | 0 |
| wolfi | mlflow | 0 |
Timeline
- May 6, 2026 CVE Published
- May 8, 2026 Security Advisory (2 in total, the first dated here)
- May 9, 2026 CVE Updated
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Aug 5, 2026 Coalition ESS Score
- Sep 4, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-44244
vulnetix vdb fixes CVE-2026-44244
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-44244/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67 x_refsource_CONFIRM
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-44244 advisory
- https://github.com/advisories/GHSA-v87r-6q3f-2j67 advisory
- https://github.com/gitpython-developers/GitPython url