CVE-2026-44244
HIGH 7.8CVSS 3.1GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
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.
- Published
- 7 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- GHSA-v87r-6q3f-2j67PYSEC-2026-2163
- Sources
- NVDJSONOSV GHSA-v87r-6q3f-2j67JSONOSV PYSEC-2026-2163JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitpython_project | gitpythoncpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* |
< 3.1.49 | 3.1.49 |
| OSV | PyPI | gitpython | < 3.1.49 | 3.1.49 |
References
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49 · Patch, Release Notes, WEB, FIX
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67 · Exploit, Mitigation, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-44244 · ADVISORY
- https://github.com/gitpython-developers/GitPython · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 7 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 May 2026)