Original description
devpi-web before 5.2.0 contains an unauthenticated path traversal vulnerability in the +doc documentation route because docs_file_exists and docs_file_path in doczip.py never confine relpath to the documentation directory. Attackers can request a relpath with a leading // or percent-encoded .. segments to read server files, including the keyfs sqlite database holding password hashes.
Affected products and versions
devpi devpi-web< 5.2.0Fixed in: 5.2.0
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- None
- Availability
- None
Weakness type (CWE)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- github.com/devpi/devpi/security/advisories/GHSA-w72q-5vww-p2rh vendor advisory
- github.com/devpi/devpi/commit/680fca1607840905dab6c54059b65ba326f46850 patch
- github.com/devpi/devpi/blob/a67a065777d372acca968ab7b5cf362dc2ceb911/web/devpi_web/doczip.
- pypi.org/project/devpi-web/5.2.0/
- www.vulncheck.com/advisories/devpi-web-before-5.2.0-unauthenticated-path-traversal-via-doc
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.