CVE-2026-44244: GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
Vulnerability summary
CVE-2026-44244 is a high (CVSS 7.8) Improper Control of Generation of Code vulnerability in gitpython_project gitpython. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.7% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 4Timeline
- 07-05-2026PublishedVulnerability first disclosed.
- 09-05-2026Last modifiedVulnerability information updated.
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 metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.22% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGitpython
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard5 products
- awx< 24.6.1-r35
- datahub-ingestion-fips< 1.5.0.1-r2
- mlflow< 3.16.0-r0
- mlflow-fips< 3.12.0-r0
- opal< 0.9.5-r1
Debian1 product
- python-gitAll versions (No fix recorded) | < 3.1.30-1+deb12u3 | < 3.1.44-1+deb13u1 | < 3.1.50-1
Gitpython_project1 product
- gitpython< 3.1.49
Gitpython-developers1 product
- gitpython< 3.1.49
PyPI1 product
- gitpython< 3.1.49
Ubuntu1 product
- python-git< 0.3.2~RC1-3ubuntu0.1~esm3 | < 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 | < 2.1.8-1ubuntu0.1~esm4 | < 3.0.7-1ubuntu0.1~esm4 | < 3.1.24-1ubuntu0.1~esm3 | < 3.1.37-3ubuntu0.1~esm2 | All versions (No fix recorded) | < 3.1.46-1ubuntu0.1~esm1
Wolfi1 product
- mlflow< 3.16.0-r0
7 vendors · 11 products
References
9 links- github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67X Refsource CONFIRMWEBEVIDENCEAdvisoryExploitMitigationVendor Advisory
- github.com/gitpython-developers/GitPython/releases/tag/3.1.49X Refsource MISCWEBFIXPatchRelease Notes