{"cve":"CVE-2026-44244","nvd":{"published":"2026-05-07T19:16:02.357","modified":"2026-06-17T10:50:24.350","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-94"],"references":["https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49","https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67","https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67"],"products":["gitpython_project:gitpython"],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-44244","score":0.00237,"percentile":0.14762,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v87r-6q3f-2j67","url":"https://osv.dev/vulnerability/GHSA-v87r-6q3f-2j67","summary":"GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath","modified":"2026-09-10T03:50:47.691444343Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.49"],"fixed":["3.1.49"]}]},{"id":"PYSEC-2026-2163","url":"https://osv.dev/vulnerability/PYSEC-2026-2163","summary":"","modified":"2026-07-13T07:15:30.296343566Z","packages":[{"ecosystem":"PyPI","name":"gitpython","purl":"pkg:pypi/gitpython","ranges":["<3.1.49"],"fixed":["3.1.49"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}