CVE-2017-0359 diffoscope writes to arbitrary locations on disk based on the contents of an untrusted archive

Critical 9.8 Published Updated

An attacker can write files to arbitrary locations on the victim's disk by providing a malicious archive to diffoscope.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-0359?

CVE-2017-0359 is a critical path traversal vulnerability in Debian Debian Linux, published on 13 Apr 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

diffoscope before 77 writes to arbitrary locations on disk based on the contents of an untrusted archive.

Which versions are affected by CVE-2017-0359?

3 open source packages ship an affected version, including diffoscope. It affects 2 products.

PackageAffectedFixed in
diffoscope PyPIAll versions76
diffoscope PyPIAll versions76
diffoscope PyPIAll versions77
Linux distribution packages (1)
diffoscope openSUSE:TumbleweedAll versions183-1.2

Products include Debian Debian Linux, Reproducible Builds Diffoscope.

How do I fix CVE-2017-0359?

Upgrade diffoscope to a fixed version for your release line: 76 or 77.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2017-0359 being exploited?

There is no known exploitation of CVE-2017-0359 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2017-0359, GHSA-8p5c-f328-9fvv, PYSEC-2018-83, UBUNTU-CVE-2017-0359, openSUSE-SU-2024:10717-1.

Is CVE-2017-0359 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free