{"id":"CVE-2025-64184","published":"2025-11-07T03:02:41Z","modified":"2025-11-07T18:02:26Z","title":"Dosage vulnerable to Directory Traversal through crafted HTTP responses","vendor":"webcomics","product":"dosage","tier":"tail","description":{"text":"Dosage is a comic strip downloader and archiver. When downloading comic images in versions 3.1 and below, 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). This issue is fixed in version 3.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00817,"percentile":0.5411,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/webcomics/dosage/security/advisories/GHSA-4vcx-3pj3-44m7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":10.82},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"webcomics","affectedVersions":[{"vendor":"webcomics","product":"dosage","versions":["< 3.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-11-07T18:02:18.606724Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"dosage","vulnerableRanges":["<3.2"],"patched":["3.2"],"from":["GHSA-4vcx-3pj3-44m7","PYSEC-2026-1316"],"provenance":"source"}],"summary":{"text":"The Dosage comic strip downloader and archiver (versions 3.1 and below) builds local file names partly from the Content-Type header of remote HTTP responses, so the extension is not sanitised the way the basename is, allowing files to be written outside the target directory. An attacker who can serve crafted responses, either as the remote comic host or as a Man-in-the-Middle when the comic is fetched over HTTP, can write arbitrary files outside the target directory if additional conditions are met, and the victim must run a download for this to occur.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:08Z"},"euvd":{"id":"EUVD-2025-37861","exploited":false,"provenance":"source"}}