CVE-2026-44244
HIGH7.8EPSS 0.02%GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
發布日:2026/5/6修改日:2026/5/17
描述
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.
受影響套件(2)
- Debian/python-gitfrom 0
- PyPI/gitpythonfrom 0, < 3.1.49
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
參考連結(5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-44244
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-44244
- PATCHhttps://github.com/gitpython-developers/GitPython
- WEBhttps://github.com/gitpython-developers/GitPython/releases/tag/3.1.49
- WEBhttps://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67