---
id: CVE-2025-64184
aliases:
  - GHSA-4vcx-3pj3-44m7
  - PYSEC-2026-1316
title: Dosage vulnerable to a Directory Traversal through crafted HTTP responses
summary: Dosage vulnerable to a Directory Traversal through crafted HTTP responses
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
vendor: dosage
product: dosage
ecosystem: pip
affected:
  - dosage < 3.2
patched:
  - dosage 3.2
published: '2025-11-04'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-4vcx-3pj3-44m7'
references:
  - url: >-
      https://github.com/webcomics/dosage/security/advisories/GHSA-4vcx-3pj3-44m7
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-64184'
  - url: >-
      https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e
  - url: 'https://github.com/webcomics/dosage'
tags:
  - osv
  - pip
epss: 0.00453
epssPercentile: 0.36717
ingestedAt: '2026-07-08T18:25:45.547Z'
---

## Overview

### 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](https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e), so distributors might elect to backport the fix to older versions.

### Workarounds

No

## Affected packages

- `dosage < 3.2`

## Remediation

Upgrade to a patched release:

- `dosage 3.2`
