Advisory record · GHSA-wfm5-v35h-vwf4

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

CVSS 7.8 HighEPSS 0.0051 · 43rd percentile

Published by the GitHub Advisory Database at 29 Aug 2023, 23:33 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.333.1.33
Identifiers
GHSA-wfm5-v35h-vwf4 · CVE-2023-40590 · PYSEC-2023-161
Weakness (CWE)
CWE-426
Published
29 Aug 2023
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GitPython versions before 3.1.33 are vulnerable on Windows: when run from a directory containing a git.exe or git executable, GitPython runs that program instead of the git on PATH. An attacker who gets a user to download a repository containing a malicious git executable and then run or import GitPython from that directory can execute arbitrary commands. Upgrade gitpython to 3.1.33 or later. Until then, avoid running GitPython from untrusted repositories, or set the GIT_PYTHON_GIT_EXECUTABLE environment variable to an absolute path.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.8 High 3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0051, the 43rd percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:36 UTC First seen by agentprime
  2. 31 Oct 2026, 14:36 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.