Upstream information
Description
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.SUSE information
Overall state of this security issue: Resolved
This issue is currently rated as having low severity.
National Vulnerability Database | SUSE | |
---|---|---|
Base Score | 4 | 4 |
Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Attack Vector | Local | Local |
Attack Complexity | Low | Low |
Privileges Required | None | None |
User Interaction | None | None |
Scope | Unchanged | Unchanged |
Confidentiality Impact | None | None |
Integrity Impact | None | None |
Availability Impact | Low | Low |
CVSSv3 Version | 3.1 | 3.1 |
SUSE Security Advisories:
- openSUSE-SU-2023:0259-1, published Mon Sep 25 18:46:29 2023
- openSUSE-SU-2023:0271-1, published Tue Sep 26 04:45:42 2023
List of released packages
Product(s) | Fixed package version(s) | References |
---|---|---|
SUSE Package Hub 15 SP4 |
| Patchnames: openSUSE-2023-271 |
SUSE Package Hub 15 SP5 |
| Patchnames: openSUSE-2023-259 |
openSUSE Leap 15.4 |
| Patchnames: openSUSE-2023-271 |
openSUSE Leap 15.5 |
| Patchnames: openSUSE-2023-259 |
openSUSE Tumbleweed |
| Patchnames: openSUSE Tumbleweed GA python310-GitPython-3.1.34.1693646983.2a2ae77-1.1 |
Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.
Product(s) | Source package | State |
---|---|---|
Products under general support and receiving all security fixes. | ||
SUSE Package Hub 15 SP4 | python-GitPython | Released |
SUSE Package Hub 15 SP5 | python-GitPython | Released |
Products past their end of life and not receiving proactive updates anymore. | ||
HPE Helion OpenStack 8 | python-GitPython | Won't fix |
SUSE OpenStack Cloud 8 | python-GitPython | Won't fix |
SUSE OpenStack Cloud 9 | python-GitPython | Won't fix |
SUSE Timeline for this CVE
CVE page created: Thu Aug 31 02:36:57 2023CVE page last modified: Wed Sep 27 20:06:45 2023