Skip to content
OpenAdvisories
High · 7.8 CVE-2024-22190 EUVD-2024-0062GHSA-2mqj-m65w-jghxPYSEC-2024-4

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

Published Jan 11, 2024 · Updated Sep 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
gitpython-developers GitPython < 3.1.41 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling checkov 3.0.34-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gitpython < 3.1.41 3.1.41 GHSA-2mqj-m65w-jghx

References