Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. GitPython
  4. ›
  5. CVE-2024-22190

CVE-2024-22190: Untrusted search path under some conditions on Windows allows arbitrary code execution

January 10, 2024 (updated September 20, 2024)

This issue exists because of 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.

References

  • github.com/advisories/GHSA-2mqj-m65w-jghx
  • github.com/gitpython-developers/GitPython
  • github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f
  • github.com/gitpython-developers/GitPython/pull/1792
  • github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx
  • github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-22190

Code Behaviors & Features

Detect and mitigate CVE-2024-22190 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.41

Fixed versions

  • 3.1.41

Solution

Upgrade to version 3.1.41 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-426: Untrusted Search Path

Source file

pypi/GitPython/CVE-2024-22190.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:51 +0000.