Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| webcomics | dosage | < 3.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | dosage | No fix yet | — |
| Ubuntu 26.04 LTS | dosage | No fix yet | — |
| Ubuntu 25.10 | dosage | No fix yet | — |
| Ubuntu 24.04 LTS | dosage | No fix yet | — |
| Ubuntu 22.04 LTS | dosage | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | dosage | No fix yet | — |
| Ubuntu 18.04 LTS | dosage | No fix yet | — |
| Ubuntu 16.04 LTS | dosage | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | dosage | < 3.2 | 3.2 | GHSA-4vcx-3pj3-44m7 |