CVE-2024-22190

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

Published Jan 11, 2024 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0062 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.
Github GHSA Github GHSA GHSA-2mqj-m65w-jghx Untrusted search path under some conditions on Windows allows arbitrary code execution
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 3, 2024, 6:23 PM
Reserved
Jan 8, 2024, 4:59 AM
Status
Modified
Published
Jan 11, 2024, 2:15 AM
Modified
Jun 17, 2026, 7:10 AM