Advisory

PYSEC-2026-1316

Also known as: CVE-2025-64184, GHSA-4vcx-3pj3-44m7

Summary

Dosage vulnerable to a Directory Traversal through crafted HTTP responses

Details

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

Severity

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

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

dosage

PyPI · All systems

Affected

  • introduced 0, fixed 3.2 (ecosystem)

Fixed versions

3.2

Fix

  • Fixed version 3.2
    pip install --upgrade dosage==3.2

Fix 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

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences