Advisory record · GHSA-2mqj-m65w-jghx

Untrusted search path under some conditions on Windows allows arbitrary code execution

CVSS 7.8 HighEPSS 0.0032 · 24th percentile

Published by the GitHub Advisory Database at 10 Jan 2024, 15:46 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.413.1.41
Identifiers
GHSA-2mqj-m65w-jghx · CVE-2024-22190 · PYSEC-2024-4
Weakness (CWE)
CWE-426
Published
10 Jan 2024
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.41 on Windows can run a malicious git.exe or bash.exe from an untrusted repository's working directory through an untrusted search path. An attacker who can get a malicious repository or fork onto a user's machine can achieve arbitrary code execution when the application uses a shell to run git or when hook scripts run, and the user performs an action that triggers them. Upgrade to gitpython 3.1.41 or later. Applications that set Git.USE_SHELL = True can avoid this exposure by not using a shell for git commands.

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.0032, the 24th 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.