CVE-2026-44244
Beschrijving NL
GitPython is een python-bibliotheek die wordt gebruikt om te communiceren met Git-repositories. Voorafgaand aan versie 3.1.49 geeft GitConfigParser.set_value () waarden door aan de configuratieparser van Python zonder te valideren voor nieuwe regels. GitPython's own _write() converteert ingesloten newlines naar ingesprongen vervolgregels (bijv. n wordt nt), maar Git accepteert nog steeds een ingesprongen [core] stanza als sectiekoptekst — dus de geïnjecteerde core.hooksPath wordt een effectieve configuratie. Elke Git-bewerking die hooks aanroept (commit, merge, checkout) zal dan scripts uitvoeren vanaf het door de aanvaller gecontroleerde pad. Dit probleem is gepatcht in versie 3.1.49.
Origineel (Engels) tonen
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 nt), 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.