Intel

AIKIDO-2026-11131

distlib is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 2 days ago

59

Medium Risk

This Affects:

PYTHONdistlib
0.1.0 - 0.4.1
Fixed in 0.4.2
Are you affected? Scan for Free

TL;DR

Affected versions of this library do not consistently confine wheel installation, extension mounting, package resource lookups, and tar symlink targets to their intended directories when processing crafted archive or path input. A hostile simple-index response can also inflate without bound during decompression and exhaust memory. Before the fix, these gaps allowed files to be written or read outside intended install, cache, or package bases and could enable denial-of-service during index scraping. The patch adds path containment checks across wheel, resource, and unarchive flows and caps decompressed index size.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

distlib is vulnerable to Path Traversal in versions 0.1.0 - 0.4.1.

How to fix this

Upgrade the distlib library to the patch version.