{"id":"CVE-2026-67326","published":"2026-08-01T12:22:18Z","modified":"2026-08-14T16:50:54Z","title":"GitPython before 3.1.50 Newline Injection via config_writer section","vendor":"gitpython-developers","product":"GitPython","tier":"tail","description":{"text":"GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00254,"percentile":0.17276,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section","tags":["third-party-advisory"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":3.46},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"gitpython-developers","affectedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["< 3.1.50"]}],"fixedVersions":[{"vendor":"gitpython-developers","product":"GitPython","versions":["3.1.50"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-04T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gitpython","vulnerableRanges":["<3.1.50"],"patched":["3.1.50"],"from":["PYSEC-2026-3980"],"provenance":"source"}],"summary":{"text":"GitPython versions before 3.1.50 fail to validate newline characters in the section parameter of config_writer(), which lets the section parameter inject arbitrary section headers into a repository's .git/config file. An attacker who can supply that section value, and who gets a git hook triggered (such as through a user performing a normal git operation), can forge a [core] section with hooksPath pointing to attacker-controlled directories to achieve code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:09Z"},"euvd":{"id":"EUVD-2026-51814","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2026-42215","parents":[{"from":"CVE-2026-42215","to":"CVE-2026-67326","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-mv93-w799-cj2w","via":"reference","url":"https://github.com/advisories/GHSA-rpm5-65cw-6hj4"}]}],"packageHistory":[{"cve":"CVE-2026-67326","published":"2026-08-01","fixed":"3.1.50","kev":false},{"cve":"CVE-2026-67324","published":"2026-08-01","fixed":"3.1.51","kev":false,"link":{"from":"CVE-2026-67326","to":"CVE-2026-67324","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:gitpython","fromFixed":"3.1.50","toFixed":"3.1.51","daysApart":0}]}},{"cve":"CVE-2026-69097","published":"2026-08-03","fixed":"3.1.53","kev":false},{"cve":"CVE-2026-73623","published":"2026-08-13","fixed":"3.1.54","kev":false}],"package":"PyPI:gitpython"}}