# CVE-2026-44244: GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-06T21:58:00.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-v87r-6q3f-2j67, PYSEC-2026-2163
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: < 3.1.49
- gitpython (PyPI): before 3.1.49
- gitpython_project gitpython: before 3.1.49

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49> (fix, patch, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44244> (advisory)
- <https://github.com/gitpython-developers/GitPython> (package)

## Sources

- CVE List: [CVE-2026-44244](https://www.cve.org/CVERecord?id=CVE-2026-44244), CVE Terms of Use, modified 2026-05-09
- GitHub Advisory Database: [GHSA-v87r-6q3f-2j67](https://github.com/advisories/GHSA-v87r-6q3f-2j67), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-44244](https://nvd.nist.gov/vuln/detail/CVE-2026-44244), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-2163](https://osv.dev/vulnerability/PYSEC-2026-2163), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-44244 · Whole record: https://cve.day/CVE-2026-44244.json · Rebuilt by cve.day 2026-11-25T22:59:20.899Z
