CVE catalog

CVE-2024-22190

python-git: CVE-2024-22190

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
0.32% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-gitsid3.2.1-1not affected
Debianpython-gitforky3.2.1-1not affected
Debianpython-gittrixie3.1.44-1not affected
Debianpython-gitbookworm3.1.30-1+deb12u2not affected
PyPIgitpythonNot reported3.1.41fixed
PyPIgitpythonNot reported3.1.41fixed
PyPIgitpythonNot reportedef3192cc414f2fd9978908454f6fd95243784c7ffixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-gitsourcesidNot affectedunimportantNot reportedNot reported
Debianpython-gitsourceforkyNot affectedunimportantNot reportedNot reported
Debianpython-gitsourcetrixieNot affectedunimportantNot reportedNot reported
Debianpython-gitsourcebookwormNot affectedunimportantNot reportedNot reported
PyPIgitpythonPyPINot reported3.1.41Not reportedGHSA-2MQJ-M65W-JGHXNot reported
PyPIgitpythonPyPINot reported3.1.41Not reportedPYSEC-2024-4Not reported
PyPIgitpythonPyPINot reportedef3192cc414f2fd9978908454f6fd95243784c7fNot reportedPYSEC-2024-4Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References