{"id":"CVE-2025-64184","aliases":["CVE-2025-64184","GHSA-4vcx-3pj3-44m7","PYSEC-2026-1316"],"related":[],"kind":"vulnerability","state":"published","title":"Dosage vulnerable to Directory Traversal through crafted HTTP responses","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen 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). \n\n### Patches\n\nFixed in release 3.2. The [fix is small and self-contained](https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e), so distributors might elect to backport the fix to older versions.\n\n### Workarounds\n\nNo","format":"markdown","source":"ghsa"},{"lang":"es","text":"Dosage es un programa para descargar y archivar. Cuando descarga imágenes de cómics en las versiones 3.1 e inferiores, Dosage construye los nombres de archivo de destino a partir de diferentes aspectos del cómic remoto (URL de la página, URL de la imagen, contenido de la página, etc.). Aunque el nombre base se limpia correctamente de caracteres de recorrido de directorio, la extensión del archivo se toma del encabezado HTTP Content-Type. Esto permite a un atacante remoto (o a un Man-in-the-Middle, si el cómic se sirve a través de HTTP) escribir archivos arbitrarios fuera del directorio de destino (si se cumplen condiciones adicionales). Este problema se corrige en la versión 3.2.","source":"nvd"}],"published":"2025-11-04T15:31:48.000Z","modified":"2026-07-07T17:57:22.746Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 3.2","status":"affected"}],"vendor":"webcomics","product":"dosage","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2"}],"ecosystem":"PyPI","package":"dosage","purl":"pkg:pypi/dosage","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2"}],"ecosystem":"PyPI","package":"dosage","purl":"pkg:pypi/dosage","source":"pysec"}],"references":[{"url":"https://github.com/webcomics/dosage/security/advisories/GHSA-4vcx-3pj3-44m7","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64184","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/webcomics/dosage","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/dosage","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-4vcx-3pj3-44m7","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-11-07T18:02:18.606Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-64184","url":"https://www.cve.org/CVERecord?id=CVE-2025-64184","licence":"CVE Terms of Use","modified":"2025-11-07T18:02:26.896Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4vcx-3pj3-44m7","url":"https://github.com/advisories/GHSA-4vcx-3pj3-44m7","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:22.746Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-64184","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64184","licence":"Public domain","modified":"2026-06-17T09:53:58.517Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1316","url":"https://osv.dev/vulnerability/PYSEC-2026-1316","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:39.481Z"}],"updatedAt":"2026-11-25T22:59:07.327Z","epss":{"score":0.00486,"percentile":0.4347,"date":"2026-12-01T12:00:22.000Z"}}