SecurityContext

CVE-2024-22190: GitPython - Command Injection

  • Cve: CVE-2024-22190
  • Name: GitPython - Command Injection
  • Description: GitPython is a python library used to interact with Git repositories. There is an incomplete fix for CVE-2023-40590. On Windows, GitPython uses an untrusted search path if it uses a shell to run `git`, as well as when it runs `bash.exe` to interpret hooks. If either of those features are used on Windows, a malicious `git.exe` or `bash.exe` may be run from an untrusted repository. This issue has been patched in version 3.1.41.
  • Impact: Attackers can execute malicious 'git.exe' or 'bash.exe' from untrusted repositories, potentially leading to remote code execution.
  • Remediation: Update to version 3.1.41 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00316
  • Epss percentile: 0.24763
  • Assignee: [email protected]
  • Published at: 2024-01-11T02:15:48Z
  • Age in days: 1048
  • Modified at: 2026-06-17T07:10:54Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-22190
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-426Untrusted Search Path

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7fPatch
https://github.com/gitpython-developers/GitPython/pull/1792Patch, Vendor Advisory
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghxVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gitpython_project:gitpython< 3.1.41nonvd/v1/products/gitpython_project/gitpython

Projects

RepositoryLink kindsIndexedUrl
gitpython-developers/gitpythoncommit, package, pull, security_advisoryyes/v1/repositories/gitpython-developers/gitpython

Index

  • Repositories: 425
  • Repositories high signal: 231
  • Packages: 1

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts