<?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://db.gcve.eu</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>Thu, 05 Nov 2026 19:14:02 +0000</lastBuildDate>
    <item>
      <title>GHSA-xmj3-9gf7-h52w — setuptools: Windows path escape via namespace_packages.txt during legacy wheel installation  Description</title>
      <link>https://db.gcve.eu/vuln/ghsa-xmj3-9gf7-h52w</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: setuptools&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;On Windows, attacker-controlled content in a wheel&amp;#39;s
`.dist-info/namespace_packages.txt` can cause setuptools&amp;#39; legacy wheel
installation path to create an `__init__.py` outside the requested
`destination_eggdir`.&lt;/p&gt;
&lt;p&gt;The attacker can influence the destination path, but not the contents of
the created file.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;Tested setuptools commit:&lt;/p&gt;
&lt;p&gt;`6ead555c5fb29bc57fe6105b1bffc163f56fd558`&lt;/p&gt;
&lt;p&gt;Relevant source:&lt;/p&gt;
&lt;p&gt;`setuptools/wheel.py`&lt;/p&gt;
&lt;p&gt;SHA-256:&lt;/p&gt;
&lt;p&gt;`359b7e0d5dd8c3135653abe08a8ed5dc0352eadfd7df22cb5e2b5303b7c3cafd`&lt;/p&gt;
&lt;p&gt;The relevant call path is:&lt;/p&gt;
&lt;p&gt;`Wheel(wheel_path).install_as_egg(destination)`
→ `_install_as_egg`
→ `_convert_metadata`
→ `_fix_namespace_packages`&lt;/p&gt;
&lt;p&gt;A wheel can provide attacker-controlled content in:&lt;/p&gt;
&lt;p&gt;`&amp;lt;distribution&amp;gt;.dist-info/namespace_packages.txt`&lt;/p&gt;
&lt;p&gt;The namespace value is eventually used approximately as:&lt;/p&gt;
&lt;p&gt;```python
mod_dir = os.path.join(destination_eggdir, *mod.split(&amp;#39;.&amp;#39;))
mod_init = os.path.join(mod_dir, &amp;#39;__init__.py&amp;#39;)&lt;/p&gt;
&lt;p&gt;If mod is a Windows drive-qualified absolute path containing no dots,
mod.split(&amp;#39;.&amp;#39;) preserves it as a single component.
On Windows, os.path.join(destination_eggdir, absolute_component) discards
the original base directory and resolves to the attacker-supplied absolute
path.
The existing wheel filename and ZIP traversal checks do not validate this
metadata value before it is subsequently interpreted as a filesystem path.&lt;/p&gt;
&lt;p&gt;```markdown
### PoC&lt;/p&gt;
&lt;p&gt;The reproduction was performed entirely inside a disposable temporary
directory.&lt;/p&gt;
&lt;p&gt;Layout:&lt;/p&gt;
&lt;p&gt;```text
san…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: setuptools&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;On Windows, attacker-controlled content in a wheel&amp;#39;s
`.dist-info/namespace_packages.txt` can cause setuptools&amp;#39; legacy wheel
installation path to create an `__init__.py` outside the requested
`destination_eggdir`.&lt;/p&gt;
&lt;p&gt;The attacker can influence the destination path, but not the contents of
the created file.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;Tested setuptools commit:&lt;/p&gt;
&lt;p&gt;`6ead555c5fb29bc57fe6105b1bffc163f56fd558`&lt;/p&gt;
&lt;p&gt;Relevant source:&lt;/p&gt;
&lt;p&gt;`setuptools/wheel.py`&lt;/p&gt;
&lt;p&gt;SHA-256:&lt;/p&gt;
&lt;p&gt;`359b7e0d5dd8c3135653abe08a8ed5dc0352eadfd7df22cb5e2b5303b7c3cafd`&lt;/p&gt;
&lt;p&gt;The relevant call path is:&lt;/p&gt;
&lt;p&gt;`Wheel(wheel_path).install_as_egg(destination)`
→ `_install_as_egg`
→ `_convert_metadata`
→ `_fix_namespace_packages`&lt;/p&gt;
&lt;p&gt;A wheel can provide attacker-controlled content in:&lt;/p&gt;
&lt;p&gt;`&amp;lt;distribution&amp;gt;.dist-info/namespace_packages.txt`&lt;/p&gt;
&lt;p&gt;The namespace value is eventually used approximately as:&lt;/p&gt;
&lt;p&gt;```python
mod_dir = os.path.join(destination_eggdir, *mod.split(&amp;#39;.&amp;#39;))
mod_init = os.path.join(mod_dir, &amp;#39;__init__.py&amp;#39;)&lt;/p&gt;
&lt;p&gt;If mod is a Windows drive-qualified absolute path containing no dots,
mod.split(&amp;#39;.&amp;#39;) preserves it as a single component.
On Windows, os.path.join(destination_eggdir, absolute_component) discards
the original base directory and resolves to the attacker-supplied absolute
path.
The existing wheel filename and ZIP traversal checks do not validate this
metadata value before it is subsequently interpreted as a filesystem path.&lt;/p&gt;
&lt;p&gt;```markdown
### PoC&lt;/p&gt;
&lt;p&gt;The reproduction was performed entirely inside a disposable temporary
directory.&lt;/p&gt;
&lt;p&gt;Layout:&lt;/p&gt;
&lt;p&gt;```text
san…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-xmj3-9gf7-h52w</guid>
    </item>
  </channel>
</rss>
