{"id":"CVE-2026-44244","published":"2026-05-07T18:22:39Z","modified":"2026-05-09T03:56:04Z","title":"GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00218,"percentile":0.07104,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49","tags":["x_refsource_MISC"]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":1.42},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.49"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-08T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.49"],"patched":["3.1.49"],"from":["GHSA-v87r-6q3f-2j67","PYSEC-2026-2163"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-28414","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-42215","published":"2026-05-07","fixed":"3.1.47","kev":false},{"cve":"CVE-2026-42284","published":"2026-05-07","fixed":"3.1.47","kev":false},{"cve":"CVE-2026-44243","published":"2026-05-07","fixed":"3.1.48","kev":false,"link":{"from":"CVE-2026-44243","to":"CVE-2026-44244","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:GitPython","fromFixed":"3.1.48","toFixed":"3.1.49","daysApart":0}]}},{"cve":"CVE-2026-44244","published":"2026-05-07","fixed":"3.1.49","kev":false},{"cve":"CVE-2026-67323","published":"2026-08-01","fixed":"3.1.51","kev":false,"link":{"from":"CVE-2026-44244","to":"CVE-2026-67323","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:GitPython","fromFixed":"3.1.49","toFixed":"3.1.51","daysApart":86}]}},{"cve":"CVE-2026-67325","published":"2026-08-01","fixed":"3.1.51","kev":false,"link":{"from":"CVE-2026-44244","to":"CVE-2026-67325","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:GitPython","fromFixed":"3.1.49","toFixed":"3.1.51","daysApart":86}]}},{"cve":"CVE-2026-67322","published":"2026-08-01","fixed":"3.1.52","kev":false}],"package":"PyPI:GitPython"}}