CVE-2026-76218
GitPython before 3.1.58 contains a remote code execution …
GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-9rj7-rf2p-w77r
- www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-repo-init
- github.com/gitpython-developers/GitPython/pull/2204
- github.com/gitpython-developers/GitPython/commit/d9ddb55bdc66
- github.com/gitpython-developers/GitPython/releases/tag/3.1.58
- nvd.nist.gov/vuln/detail/CVE-2026-76218
- github.com/advisories/GHSA-9rj7-rf2p-w77r
- nvd.nist.gov/vuln/detail/CVE-2026-76218
- cve.org/CVERecord?id=CVE-2026-76218
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.