The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Sunday, 22 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

CVE-2026-134167: devpi-web File Read Flaw

By The Daily Byte ·22 Nov 2026 ·3 min read
Rows of rack-mounted servers with blue lights in a data center

A path traversal flaw in devpi-web, the web front end for the devpi Python package server, lets an unauthenticated attacker read files from the server, including the database that stores user password hashes. The flaw, tracked as CVE-2026-134167, was disclosed on 20 November, and the fix is in devpi-web version 5.2.0.

devpi is a private package index: teams use it to host their own Python packages instead of, or alongside, the public PyPI repository. It is developer infrastructure, not a consumer product, but it holds credentials for everyone who uses it, and it often sits on a company network with other internal services. A file-read flaw in it is a direct route to those credentials.

How the flaw works

The problem is in the +doc route, which serves documentation uploaded with a package. Two functions in the file doczip.py, docs_file_exists and docs_file_path, were supposed to keep requests inside the documentation directory. They did not. A request whose path starts with two slashes, or contains percent-encoded dot-dot segments, escapes that directory and reads any file the server process can open.

No login is needed, and no user interaction is required. The only condition is that the target package version has a documentation archive attached, which any self-registered user can upload to their own index by default. The researcher who found the flaw proved it by reading the server's /etc/passwd file and then the keyfs SQLite database, whose changelog table held user records including password hashes.

The flaw is classed as CWE-22, improper limitation of a pathname to a restricted directory, and carries a CVSS 3.1 score of 7.5 and a CVSS 4.0 score of 8.7. It was found by Zachariah Mithani of AploSec, using the AploSec scanner, and confirmed by running the attack against a test server.

Two related issues in the same advisory

The same advisory documents two more path-handling problems. A crafted documentation archive can write files outside the intended directory when it is unpacked, a classic zip-slip flaw that had already been reported separately. And a request to create a user or index named with dots can store files outside the server directory. All three issues are fixed in devpi-web 5.2.0, and in devpi-server 6.21.0 for the related server-side changes.

Who should act

Anyone running a devpi server that can be reached over a network should upgrade to devpi-web 5.2.0. Until the upgrade is done, restricting access to the documentation route, for example at a reverse proxy, limits exposure, though some reverse proxies that merge slashes or normalise dot segments may already block some variants of the attack.

There is no public exploit code and no report of the flaw being used in the wild, but the attack is simple and the payoff, a database of password hashes, is valuable. Teams that have exposed devpi to the internet should also rotate any credentials stored in it, in case the flaw was used before the fix was available.