<?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-29T23:45:45.265361+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-2026-73623</id>
    <title>CVE-2026-73623 — GitPython before 3.1.54 Remote Code Execution via --template</title>
    <updated>2026-09-29T23:45:45.292785+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> gitpython-developers GitPython</p>
<p>GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-73623"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-6p8h-3wgx-97gf</id>
    <title>GHSA-6p8h-3wgx-97gf — GitPython: Incomplete unsafe_git_clone_options denylist omits --template enabling arbitrary command execution via clone…</title>
    <updated>2026-09-29T23:45:45.292861+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: GitPython</p>
<p>## Summary
GitPython's `unsafe_git_clone_options` denylist omits `--template`. `git clone --template=&lt;dir&gt;` copies `&lt;dir&gt;/hooks/` into the new repository and runs them (`post-checkout` fires during clone), so a caller who can influence clone options can achieve arbitrary command execution in the default `allow_unsafe_options=False` configuration.</p>
<p>## Root Cause
`base.py:145-152` defines `unsafe_git_clone_options = ["--upload-pack","-u","--config","-c"]` — `--template` is absent. The guard candidate `['--template']` passes `check_unsafe_options` (verified). git copies the hook directory and executes `post-checkout` at checkout time. git's `protocol.allow`/`GIT_ALLOW_PROTOCOL` do not gate `--template`; the incomplete denylist is the only defense.</p>
<p>## Impact
Arbitrary OS command execution during clone (default config). Requires an attacker-readable directory containing an executable hook — a genuine second precondition (realistic via shared filesystems, upload dirs, `/tmp`, or attacker-writable network paths), reflected as AC:H.</p>
<p>## Proof of Concept
```python
# attacker stages &lt;dir&gt;/hooks/post-checkout (chmod +x)
from git import Repo
Repo.clone_from(src, dst, template='&lt;dir&gt;')   # post-checkout hook executes -&gt; marker created (verified)
```</p>
<p>## Attack Chain
1. Setup: attacker stages `&lt;dir&gt;/hooks/post-checkout` (chmod +x). Guard: n/a (filesystem).
2. Entry: `Repo.clone_from(url, path, template='&lt;dir&gt;')`. Guard: `check_unsafe_options(candidates=['--template'], unsafe=unsafe_git_c…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-6p8h-3wgx-97gf"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/pysec-2026-3952</id>
    <title>PYSEC-2026-3952</title>
    <updated>2026-09-29T23:45:45.292923+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: gitpython</p>
<p>GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/pysec-2026-3952"/>
  </entry>
</feed>
