Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:pypi/gitpython@3.1.35
purl pkg:pypi/gitpython@3.1.35
Next non-vulnerable version 3.1.41
Latest non-vulnerable version 3.1.41
Risk 4.0
Vulnerabilities affecting this package (1)
Vulnerability Summary Fixed by
VCID-y786-mwkd-u7ha
Aliases:
CVE-2024-22190
GHSA-2mqj-m65w-jghx
PYSEC-2024-4
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.
3.1.41
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-43fr-z5nf-cqax GitPython is a python library used to interact with Git repositories. In order to resolve some git references, GitPython reads files from the `.git` directory, in some places the name of the file being read is provided by the user, GitPython doesn't check if this file is located outside the `.git` directory. This allows an attacker to make GitPython read any file from the system. This vulnerability is present in https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175. That code joins the base directory with a user given string without checking if the final path is located outside the base directory. This vulnerability cannot be used to read the contents of files but could in theory be used to trigger a denial of service for the program. This issue has not yet been addressed. CVE-2023-41040
GHSA-cwvm-v4w8-q58c
PYSEC-2023-165

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-12T00:07:43.843746+00:00 GitLab Importer Affected by VCID-y786-mwkd-u7ha https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/GitPython/CVE-2024-22190.yml 38.3.0
2026-04-03T00:12:24.021404+00:00 GitLab Importer Affected by VCID-y786-mwkd-u7ha https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/GitPython/CVE-2024-22190.yml 38.1.0
2026-04-01T15:15:43.009817+00:00 PyPI Importer Affected by VCID-y786-mwkd-u7ha https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.0.0
2026-04-01T15:14:42.064670+00:00 PyPI Importer Fixing VCID-43fr-z5nf-cqax https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.0.0
2026-04-01T12:49:11.380719+00:00 Pypa Importer Affected by VCID-y786-mwkd-u7ha https://github.com/pypa/advisory-database/blob/main/vulns/gitpython/PYSEC-2024-4.yaml 38.0.0
2026-04-01T12:48:38.523553+00:00 Pypa Importer Fixing VCID-43fr-z5nf-cqax https://github.com/pypa/advisory-database/blob/main/vulns/gitpython/PYSEC-2023-165.yaml 38.0.0