<?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>Fri, 02 Oct 2026 03:01:44 +0000</lastBuildDate>
    <item>
      <title>GHSA-8rrh-rw8j-w5fx — Wheel Affected by Arbitrary File Permission Modification via Path Traversal in wheel unpack</title>
      <link>https://db.gcve.eu/vuln/ghsa-8rrh-rw8j-w5fx</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: wheel&lt;/p&gt;
&lt;p&gt;### Summary
 - **Vulnerability Type:** Path Traversal (CWE-22) leading to Arbitrary File Permission Modification.  
 - **Root Cause Component:** wheel.cli.unpack.unpack function.  
 - **Affected Packages:**  
   1. wheel (Upstream source)  
   2. setuptools (Downstream, vendors wheel)  
 - **Severity:** High (Allows modifying system file permissions).&lt;/p&gt;
&lt;p&gt;### Details  
The vulnerability exists in how the unpack function handles file permissions after extraction. The code blindly trusts the filename from the archive header for the chmod operation, even though the extraction process itself might have sanitized the path.  
```
# Vulnerable Code Snippet (present in both wheel and setuptools/_vendor/wheel)
for zinfo in wf.filelist:
    wf.extract(zinfo, destination)  # (1) Extraction is handled safely by zipfile&lt;/p&gt;
&lt;p&gt;# (2) VULNERABILITY:
    # The &amp;#39;permissions&amp;#39; are applied to a path constructed using the UNSANITIZED &amp;#39;zinfo.filename&amp;#39;.
    # If zinfo.filename contains &amp;#34;../&amp;#34;, this targets files outside the destination.
    permissions = zinfo.external_attr &amp;gt;&amp;gt; 16 &amp;amp; 0o777
    destination.joinpath(zinfo.filename).chmod(permissions)
```&lt;/p&gt;
&lt;p&gt;### PoC  
I have confirmed this exploit works against the unpack function imported from setuptools._vendor.wheel.cli.unpack.&lt;/p&gt;
&lt;p&gt;**Prerequisites:** pip install setuptools&lt;/p&gt;
&lt;p&gt;**Step 1: Generate the Malicious Wheel (gen_poc.py)**  
This script creates a wheel that passes internal hash validation but contains a directory traversal payload in the file list.…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: wheel&lt;/p&gt;
&lt;p&gt;### Summary
 - **Vulnerability Type:** Path Traversal (CWE-22) leading to Arbitrary File Permission Modification.  
 - **Root Cause Component:** wheel.cli.unpack.unpack function.  
 - **Affected Packages:**  
   1. wheel (Upstream source)  
   2. setuptools (Downstream, vendors wheel)  
 - **Severity:** High (Allows modifying system file permissions).&lt;/p&gt;
&lt;p&gt;### Details  
The vulnerability exists in how the unpack function handles file permissions after extraction. The code blindly trusts the filename from the archive header for the chmod operation, even though the extraction process itself might have sanitized the path.  
```
# Vulnerable Code Snippet (present in both wheel and setuptools/_vendor/wheel)
for zinfo in wf.filelist:
    wf.extract(zinfo, destination)  # (1) Extraction is handled safely by zipfile&lt;/p&gt;
&lt;p&gt;# (2) VULNERABILITY:
    # The &amp;#39;permissions&amp;#39; are applied to a path constructed using the UNSANITIZED &amp;#39;zinfo.filename&amp;#39;.
    # If zinfo.filename contains &amp;#34;../&amp;#34;, this targets files outside the destination.
    permissions = zinfo.external_attr &amp;gt;&amp;gt; 16 &amp;amp; 0o777
    destination.joinpath(zinfo.filename).chmod(permissions)
```&lt;/p&gt;
&lt;p&gt;### PoC  
I have confirmed this exploit works against the unpack function imported from setuptools._vendor.wheel.cli.unpack.&lt;/p&gt;
&lt;p&gt;**Prerequisites:** pip install setuptools&lt;/p&gt;
&lt;p&gt;**Step 1: Generate the Malicious Wheel (gen_poc.py)**  
This script creates a wheel that passes internal hash validation but contains a directory traversal payload in the file list.…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-8rrh-rw8j-w5fx</guid>
    </item>
  </channel>
</rss>
