<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Wed, 30 Sep 2026 03:39:04 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-67322 — GitPython before 3.1.52 Environment Variable Exfiltration via clone_from</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-67322</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; gitpython-developers GitPython&lt;/p&gt;
&lt;p&gt;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&amp;#39;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; gitpython-developers GitPython&lt;/p&gt;
&lt;p&gt;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&amp;#39;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-67322</guid>
    </item>
    <item>
      <title>GHSA-rwj8-pgh3-r573 — GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-rwj8-pgh3-r573</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: GitPython&lt;/p&gt;
&lt;p&gt;### 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 &amp;#34;import repository from URL&amp;#34; 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&amp;#39;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&amp;#39;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.&lt;/p&gt;
&lt;p&gt;### 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.&lt;/p&gt;
&lt;p&gt;`Git.polish_url()` unconditionally applies environment-variable expansion to its input on the non-Cygwin branch:&lt;/p&gt;
&lt;p&gt;`git/cmd.py` (v3.1.50), lines 907–925:
```python
@classmethod
def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -&amp;gt; PathLike:
    &amp;#34;&amp;#34;&amp;#34;Remove any backslashes from URLs to be written in config files.
    ...
    &amp;#34;&amp;#34;&amp;#34;
    if is_cygwin is None:
        is_cygwin = cls.is_cygwin()&lt;/p&gt;
&lt;p&gt;if is_cygwin:
        url = cygpath(url)
    else:…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: GitPython&lt;/p&gt;
&lt;p&gt;### 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 &amp;#34;import repository from URL&amp;#34; 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&amp;#39;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&amp;#39;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.&lt;/p&gt;
&lt;p&gt;### 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.&lt;/p&gt;
&lt;p&gt;`Git.polish_url()` unconditionally applies environment-variable expansion to its input on the non-Cygwin branch:&lt;/p&gt;
&lt;p&gt;`git/cmd.py` (v3.1.50), lines 907–925:
```python
@classmethod
def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -&amp;gt; PathLike:
    &amp;#34;&amp;#34;&amp;#34;Remove any backslashes from URLs to be written in config files.
    ...
    &amp;#34;&amp;#34;&amp;#34;
    if is_cygwin is None:
        is_cygwin = cls.is_cygwin()&lt;/p&gt;
&lt;p&gt;if is_cygwin:
        url = cygpath(url)
    else:…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-rwj8-pgh3-r573</guid>
    </item>
    <item>
      <title>PYSEC-2026-3842 — GitPython: Environment-variable exfiltration via os.path.expandvars() on Repo.clone_from() URL</title>
      <link>https://vulnerability.circl.lu/vuln/pysec-2026-3842</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: gitpython&lt;/p&gt;
&lt;p&gt;### 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 &amp;#34;import repository from URL&amp;#34; 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&amp;#39;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&amp;#39;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.&lt;/p&gt;
&lt;p&gt;### 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.&lt;/p&gt;
&lt;p&gt;`Git.polish_url()` unconditionally applies environment-variable expansion to its input on the non-Cygwin branch:&lt;/p&gt;
&lt;p&gt;`git/cmd.py` (v3.1.50), lines 907–925:
```python
@classmethod
def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -&amp;gt; PathLike:
    &amp;#34;&amp;#34;&amp;#34;Remove any backslashes from URLs to be written in config files.
    ...
    &amp;#34;&amp;#34;&amp;#34;
    if is_cygwin is None:
        is_cygwin = cls.is_cygwin()&lt;/p&gt;
&lt;p&gt;if is_cygwin:
        url = cygpath(url)
    else:…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: gitpython&lt;/p&gt;
&lt;p&gt;### 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 &amp;#34;import repository from URL&amp;#34; 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&amp;#39;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&amp;#39;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.&lt;/p&gt;
&lt;p&gt;### 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.&lt;/p&gt;
&lt;p&gt;`Git.polish_url()` unconditionally applies environment-variable expansion to its input on the non-Cygwin branch:&lt;/p&gt;
&lt;p&gt;`git/cmd.py` (v3.1.50), lines 907–925:
```python
@classmethod
def polish_url(cls, url: str, is_cygwin: Union[None, bool] = None) -&amp;gt; PathLike:
    &amp;#34;&amp;#34;&amp;#34;Remove any backslashes from URLs to be written in config files.
    ...
    &amp;#34;&amp;#34;&amp;#34;
    if is_cygwin is None:
        is_cygwin = cls.is_cygwin()&lt;/p&gt;
&lt;p&gt;if is_cygwin:
        url = cygpath(url)
    else:…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/pysec-2026-3842</guid>
    </item>
  </channel>
</rss>
