Skip to main content
VulnerabilityPublished Updated

snapcraft · setuptools: Windows path escape via namespace_packages.txt during legacy wheel installation Description

Affects snapcraftSource GCVE Database

0

CVSS 1.0 Low : upgrade to 9.2.2 or 8.0.1 when convenient.

Data as of 4 Dec 2026, 18:45 UTC

CVSS 4.0 base score
1.0Low
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 9.2.2, 8.0.1
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

What to do

Upgrade snapcraft to 9.2.2 or 8.0.1.

Affected software

ProductAffectedFixed in
Homebrewsnapcraftpkg:brew/snapcraftOther threatsAffected
  • >=7.3.1_1 <8.0.1
  • >=8.0.3 <9.2.2
Fixed in
  • 8.0.1
  • 9.2.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix for this vulnerability is available in setuptools versions 8.0.1 and 9.2.2. Users should upgrade to one of these versions or later to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.

Description

A vulnerability in setuptools on Windows allows a crafted wheel to cause legacy wheel installation to create an __init__.py file outside the intended installation directory. This occurs due to attacker-controlled content in the wheel's .dist-info/namespace_packages.txt file, which can specify an absolute Windows path. The created file contains fixed content and is created with the permissions of the installing process. The parent directory must already exist for this to succeed. This issue affects setuptools versions >=7.3.1_1 <8.0.1 and >=8.0.3 <9.2.2 and is fixed in versions 8.0.1 and 9.2.2.

References

Community reviews

Loading reviews…