{
  "cveId": "CVE-2023-41040",
  "url": "https://patchblox.com/security/cve/CVE-2023-41040",
  "summary": "CVE-2023-41040 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2023-41040, released August 30, 2023. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "python3-git: GitPython is a python library used to interact with Git repositories",
  "description": "GitPython is a python library used to interact with Git repositories. In order to resolve some git references, GitPython reads files from the \u0060.git\u0060 directory, in some places the name of the file being read is provided by the user, GitPython doesn\u0027t check if this file is located outside the \u0060.git\u0060 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.",
  "published": "2023-08-30T15:15:00Z",
  "severity": "Medium",
  "cvss": 6.5,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L",
  "epss": 0.01093,
  "epssPercentile": 0.65654,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "python-git",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "3.1.30-1\u002Bdeb12u2",
      "fix": "DEBIAN-CVE-2023-41040",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2023-41040",
      "released": "2023-08-30T22:15:09Z"
    },
    {
      "platform": "linux",
      "product": "python-git",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "3.1.36-1",
      "fix": "DEBIAN-CVE-2023-41040",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2023-41040",
      "released": "2023-08-30T22:15:09Z"
    },
    {
      "platform": "linux",
      "product": "python-git",
      "release": "Debian 14",
      "fixedVersion": "3.1.36-1",
      "fix": "DEBIAN-CVE-2023-41040",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2023-41040",
      "released": "2023-08-30T22:15:09Z"
    },
    {
      "platform": "linux",
      "product": "python-git",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "2.1.8-1ubuntu0.1~esm4",
      "fix": "python-git 2.1.8-1ubuntu0.1~esm4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-python-git-2.1.8-1ubuntu0.1-esm4",
      "released": "2026-05-27T17:38:19Z"
    },
    {
      "platform": "linux",
      "product": "python3-git",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "2.1.8-1ubuntu0.1~esm4",
      "fix": "python3-git 2.1.8-1ubuntu0.1~esm4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-python3-git-2.1.8-1ubuntu0.1-esm4",
      "released": "2026-05-27T17:38:19Z"
    },
    {
      "platform": "linux",
      "product": "python3-git",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "3.0.7-1ubuntu0.1~esm4",
      "fix": "python3-git 3.0.7-1ubuntu0.1~esm4",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-python3-git-3.0.7-1ubuntu0.1-esm4",
      "released": "2026-05-27T17:38:22Z"
    },
    {
      "platform": "linux",
      "product": "python3-git",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "3.1.24-1ubuntu0.1~esm3",
      "fix": "python3-git 3.1.24-1ubuntu0.1~esm3",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-python3-git-3.1.24-1ubuntu0.1-esm3",
      "released": "2026-05-27T17:38:24Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T07:25:28Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}