Description
devpi-server before 6.21.0 contains a path traversal vulnerability that allows authenticated users to write files outside the +files storage root by naming a user and index '..'. Attackers can self-register a '..' user, create a '..' index, and upload release files with attacker-chosen filenames and contents into a parent of the server directory.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
devpi devpi-server
Default version status: unaffected
0 to < 6.21.0affected
pkg:pypi/devpi-serverReferences
- https://github.com/devpi/devpi/security/advisories/GHSA-w72q-5vww-p2rh ↗
- https://github.com/devpi/devpi/commit/7635884706ee84ee53a75edd58324fad68063bc7 ↗
- https://github.com/devpi/devpi/commit/c9adacde49be8d124234c1d47c5af43583d27cd9 ↗
- https://github.com/devpi/devpi/blob/b096f41cc70e4147631c6fb99c0e5abedd59b4d0/server/devpi_server/model.py#L349-L350 ↗
- https://pypi.org/project/devpi-server/6.21.0/ ↗
- https://www.vulncheck.com/advisories/devpi-server-before-6.21.0-path-traversal-via-user-and-index-names ↗