PYSEC-2026-1316
Vulnerability from pysec - Published: 2026-07-07 16:03 - Updated: 2026-07-07 17:24Impact
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
| Name | purl | dosage | pkg:pypi/dosage |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "dosage",
"purl": "pkg:pypi/dosage"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.10",
"1.11",
"1.12",
"1.13",
"1.14",
"1.15",
"1.7",
"1.8",
"1.9",
"2.0",
"2.1",
"2.10",
"2.11",
"2.12",
"2.13",
"2.14",
"2.15",
"2.16",
"2.17",
"2.2",
"2.3",
"2.4",
"2.5",
"2.6",
"2.7",
"2.8",
"2.9",
"3.0",
"3.1"
]
}
],
"aliases": [
"CVE-2025-64184",
"GHSA-4vcx-3pj3-44m7"
],
"details": "### 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",
"id": "PYSEC-2026-1316",
"modified": "2026-07-07T17:24:03.287622Z",
"published": "2026-07-07T16:03:09.519278Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/webcomics/dosage/security/advisories/GHSA-4vcx-3pj3-44m7"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-64184"
},
{
"type": "WEB",
"url": "https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e"
},
{
"type": "PACKAGE",
"url": "https://github.com/webcomics/dosage"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/dosage"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-4vcx-3pj3-44m7"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Dosage vulnerable to a Directory Traversal through crafted HTTP responses"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.