GitHub Advisoryadvisory · PyPI
GHSA-4vcx-3pj3-44m7 Dosage vulnerable to a Directory Traversal through crafted HTTP responses
HIGH
Official page ↗
- Aliases
- CVE-2025-64184
- Ecosystem
- PyPI
- Packages
- dosage
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-22
- Reviewed
- 2025-11-04
Affected packages
• PyPI dosage: < 3.2 → fixed in 3.2
Description
Impact
When downloadinging comic images, Dosage constructs target file names from different aspects of the remote comic (page URL, image URL, page content, etc.). While the basename is properly stripped of directory-traversing characters, the file extension is taken from the HTTP `Content-Type` header. This allows a remote attacker (or a Man-in-the-Middle, if the comic is served over HTTP) to write arbitrary files outside the target directory (if additional conditions are met).
Patches
Fixed in release 3.2. The fix is small and self-contained, so distributors might elect to backport the fix to older versions.
Workarounds
No
Related
Alias · CVE (1)
- CVE-2025-64184 Dosage is a comic strip downloader and archiver. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness