Upstream information

CVE-2023-41040 at MITRE

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.

CVSS v3 Scores
  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 Bugzilla entry: 1214810 [IN_PROGRESS]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
SUSE Package Hub 15 SP4
  • python3-GitPython >= 3.1.12.1610074031.f653af66-bp154.2.3.1
Patchnames:
openSUSE-2023-271
SUSE Package Hub 15 SP5
  • python3-GitPython >= 3.1.12.1610074031.f653af66-bp155.3.3.1
Patchnames:
openSUSE-2023-259
openSUSE Leap 15.4
  • python3-GitPython >= 3.1.12.1610074031.f653af66-bp154.2.3.1
Patchnames:
openSUSE-2023-271
openSUSE Leap 15.5
  • python3-GitPython >= 3.1.12.1610074031.f653af66-bp155.3.3.1
Patchnames:
openSUSE-2023-259
openSUSE Tumbleweed
  • python310-GitPython >= 3.1.34.1693646983.2a2ae77-1.1
  • python311-GitPython >= 3.1.34.1693646983.2a2ae77-1.1
  • python39-GitPython >= 3.1.34.1693646983.2a2ae77-1.1
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 SP5 python-GitPython Released
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE OpenStack Cloud 8 python-GitPython Won't fix
SUSE OpenStack Cloud 9 python-GitPython Won't fix
Products past their end of life and not receiving proactive updates anymore.
HPE Helion OpenStack 8 python-GitPython Won't fix
SUSE Package Hub 15 SP4 python-GitPython Released


SUSE Timeline for this CVE

CVE page created: Thu Aug 31 02:36:57 2023
CVE page last modified: Mon Apr 15 16:21:47 2024