PyPI: gitpython

CVE-2023-40590

Safety vulnerability ID: SFTY-20230828-61897

Safety legacy ID: pyup.io-60789

Gitpython 3.1.33 includes a fix for CVE-2023-40590: Untrusted search path on Windows systems leading to arbitrary code execution. https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

GitPython untrusted search path on Windows systems leading to arbitrary code execution

Advisory

Gitpython 3.1.33 includes a fix for CVE-2023-40590: Untrusted search path on Windows systems leading to arbitrary code execution. https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4

Affected Package

Affecting gitpython package, versions<=3.1.32

Also affects

---

How to Fix

Upgradegitpythonto3.1.33or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more