<?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-29T18:05:19.961243+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-67322</id>
    <title>CVE-2026-67322 — GitPython before 3.1.52 Environment Variable Exfiltration via clone_from</title>
    <updated>2026-09-29T18:05:21.351024+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.52 is vulnerable to environment-variable exfiltration in Repo.clone_from(). The caller-supplied remote URL is passed through Git.polish_url(), which on non-Cygwin platforms calls os.path.expandvars() on the URL before invoking git clone. An attacker who controls the clone URL can embed $NAME or ${NAME} tokens that are expanded to the values of the hosting process's environment variables (e.g., AWS_SECRET_ACCESS_KEY or GITHUB_TOKEN). The resulting URL, now containing the secret, is transmitted over the network to an attacker-controlled host during the clone attempt, disclosing the secret.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-67322"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-rwj8-pgh3-r573</id>
    <title>GHSA-rwj8-pgh3-r573 — GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL</title>
    <updated>2026-09-29T18:05:21.351149+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: GitPython</p>
<p>### Summary
`Repo.clone_from()` passes the caller-supplied remote URL through `Git.polish_url()`, which on every non-Cygwin platform calls `os.path.expandvars()` on the URL before handing it to `git clone`. An attacker who controls the URL argument — the documented use case for `clone_from()` in "import repository from URL" features of CI servers, git-hosting mirrors, and dependency scanners — can embed `$NAME` / `${NAME}` tokens that are expanded server-side to the values of the hosting process's environment variables. The resulting URL, now containing the secret, is transmitted over the network to the attacker-named host. This crosses the trust boundary between an untrusted remote URL and the server's process environment, disclosing secrets such as `AWS_SECRET_ACCESS_KEY` or `GITHUB_TOKEN` with no precondition beyond the ability to submit a clone URL.</p>
<p>### Details
**Affected versions:** `gitpython` (PyPI) — all releases up to and including `3.1.50` (latest at time of reporting); confirmed present on the `main` branch.</p>
<p>`Git.polish_url()` unconditionally applies environment-variable expansion to its input on the non-Cygwin branch:</p>
<p>`git/cmd.py` (v3.1.50), lines 907–925:
```python
@classmethod
def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -&gt; PathLike:
    """Remove any backslashes from URLs to be written in config files.
    ...
    """
    if is_cygwin is None:
        is_cygwin = cls.is_cygwin()</p>
<p>if is_cygwin:
        url = cygpath(url)
    else:…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-rwj8-pgh3-r573"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/pysec-2026-3842</id>
    <title>PYSEC-2026-3842 — GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL</title>
    <updated>2026-09-29T18:05:21.351277+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: gitpython</p>
<p>### Summary
`Repo.clone_from()` passes the caller-supplied remote URL through `Git.polish_url()`, which on every non-Cygwin platform calls `os.path.expandvars()` on the URL before handing it to `git clone`. An attacker who controls the URL argument — the documented use case for `clone_from()` in "import repository from URL" features of CI servers, git-hosting mirrors, and dependency scanners — can embed `$NAME` / `${NAME}` tokens that are expanded server-side to the values of the hosting process's environment variables. The resulting URL, now containing the secret, is transmitted over the network to the attacker-named host. This crosses the trust boundary between an untrusted remote URL and the server's process environment, disclosing secrets such as `AWS_SECRET_ACCESS_KEY` or `GITHUB_TOKEN` with no precondition beyond the ability to submit a clone URL.</p>
<p>### Details
**Affected versions:** `gitpython` (PyPI) — all releases up to and including `3.1.50` (latest at time of reporting); confirmed present on the `main` branch.</p>
<p>`Git.polish_url()` unconditionally applies environment-variable expansion to its input on the non-Cygwin branch:</p>
<p>`git/cmd.py` (v3.1.50), lines 907–925:
```python
@classmethod
def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -&gt; PathLike:
    """Remove any backslashes from URLs to be written in config files.
    ...
    """
    if is_cygwin is None:
        is_cygwin = cls.is_cygwin()</p>
<p>if is_cygwin:
        url = cygpath(url)
    else:…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/pysec-2026-3842"/>
  </entry>
</feed>
