Path Traversal in Gitpython-developers Gitpython
CVE-2023-41040
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, GitPyth…
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.004 (58.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 4.0 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
Affected products
- Gitpython-developers Gitpython — versions < 3.1.37
Weakness classification (CWE)
Public proof-of-concept exploits
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-cwvm-v4w8-q58c (x_refsource_CONFIRM)
- https://github.com/gitpython-developers/GitPython/pull/1672 (x_refsource_MISC)
- https://github.com/gitpython-developers/GitPython/commit/74e55ee4544867e1bd976b7df5a45869ee397b0b (x_refsource_MISC)
- https://github.com/gitpython-developers/GitPython/commit/e98f57b81f792f0f5e18d33ee658ae395f9aa3c4 (x_refsource_MISC)
- https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175 (x_refsource_MISC)
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.37 (x_refsource_MISC)
- https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-165.yaml (x_refsource_MISC)
- https://lists.debian.org/debian-lts-announce/2023/09/msg00036.html (x_refsource_MISC)
Frequently asked questions
- What is CVE-2023-41040?
- CVE-2023-41040 is a medium-severity vulnerability in Gitpython-developers Gitpython, classified under Path Traversal. CVSS score: 4.0/10. Published 2023-08-30.
- How severe is CVE-2023-41040?
- Medium severity. CVSS v3 base score is 4.0 out of 10.
- Is CVE-2023-41040 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.