gitpython is vulnerable to Remote Code Execution (RCE)
93
Critical Risk
GitConfigParser re-serializes multi-line git-config values without safely re-quoting them on write. A quoted value that contains embedded newlines can be rewritten as live directives such as core.hooksPath when any unrelated config write occurs. An untrusted crafted config in a repository GitPython writes to can then trigger git hooks and execute arbitrary code. The fix safely re-serializes multi-line values on write so embedded newlines cannot become injected directives.
You are affected if you are using a version that falls within the vulnerable range and your application uses GitPython to write git config in repositories that may contain untrusted config files.
gitpython is vulnerable to Remote Code Execution (RCE) in versions 0.1.7 - 3.1.58.
Upgrade the gitpython library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant