Upstream information

CVE-2023-41040 at MITRE


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 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
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 >=
SUSE Package Hub 15 SP5
  • python3-GitPython >=
openSUSE Leap 15.4
  • python3-GitPython >=
openSUSE Leap 15.5
  • python3-GitPython >=
openSUSE Tumbleweed
  • python310-GitPython >=
  • python311-GitPython >=
  • python39-GitPython >=
openSUSE Tumbleweed GA python310-GitPython-

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 2023
CVE page last modified: Wed Sep 27 20:06:45 2023