dosage
Affected
- introduced
0, fixed3.2(ecosystem)
Fixed versions
3.2
Fix
- Fixed version
3.2pip install --upgrade dosage==3.2
Advisory
Also known as: CVE-2025-64184, GHSA-4vcx-3pj3-44m7
Dosage vulnerable to a Directory Traversal through crafted HTTP responses
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
High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
0, fixed 3.2 (ecosystem)3.2
3.2pip install --upgrade dosage==3.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0