<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T19:41:28.236784+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2023-41040</id>
    <title>CVE-2023-41040 — GitPython blind local file inclusion</title>
    <updated>2026-09-29T19:41:28.418759+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> gitpython-developers GitPython</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2023-41040"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-cwvm-v4w8-q58c</id>
    <title>GHSA-cwvm-v4w8-q58c — GitPython blind local file inclusion</title>
    <updated>2026-09-29T19:41:28.418885+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: GitPython</p>
<p>### Summary</p>
<p>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.</p>
<p>### Details</p>
<p>This vulnerability is present in</p>
<p>https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175</p>
<p>That code joins the base directory with a user given string without checking if the final path is located outside the base directory.</p>
<p>I was able to exploit it from three places, but there may be more code paths that lead to it:</p>
<p>https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/repo/base.py#L605</p>
<p>https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/repo/base.py#L620</p>
<p>https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/index/base.py#L1353</p>
<p>### PoC</p>
<p>Running GitPython within any repo should work, here is an example with the GitPython repo.</p>
<p>```python
import git</p>
<p>r = git.Repo(".")</p>
<p># This will make GitPython read the README.md file from the root of the repo
r.commit("../README.md")
r.tree("../README.md")
r.index.diff("../README.md")</p>
<p># Reading /etc/random
# WARNING: this will probably halt your system, run with caution
# r.commit("../../../../…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-cwvm-v4w8-q58c"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/pysec-2023-165</id>
    <title>PYSEC-2023-165</title>
    <updated>2026-09-29T19:41:28.418991+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: gitpython</p>
<p>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.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/pysec-2023-165"/>
  </entry>
</feed>
