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 been addressed in version 3.1.37.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having low severity.

CVSS v3 Scores
  CNA (GitHub) National Vulnerability Database SUSE
Base Score 4 6.5 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:N/AC:L/PR:N/UI:N/S:U/C:L/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 Network Local
Attack Complexity Low Low Low
Privileges Required None None None
User Interaction None None None
Scope Unchanged Unchanged Unchanged
Confidentiality Impact None Low None
Integrity Impact None None None
Availability Impact Low Low Low
CVSSv3 Version 3.1 3.1 3.1
SUSE Bugzilla entry: 1214810 [RESOLVED / FIXED]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
SUSE Linux Enterprise Desktop 15 SP6
SUSE Linux Enterprise High Performance Computing 15 SP6
SUSE Linux Enterprise Module for Python 3 15 SP6
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server for SAP Applications 15 SP6
  • python311-GitPython >= 3.1.34.1693646983.2a2ae77-150400.9.3.7
Patchnames:
SUSE Linux Enterprise Module for Python 3 15 SP6 GA python311-GitPython-3.1.34.1693646983.2a2ae77-150400.9.3.7
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-2024-13207


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 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 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: Wed Oct 30 11:55:37 2024