PyPI: diffoscope
CVE-2017-0359
Safety vulnerability ID: SFTY-20180413-82519
Safety legacy ID: pyup.io-53922
diffoscope before 76 writes to arbitrary locations on disk based on the contents of an untrusted archive. Affected functions: diffoscope.comparators.utils.libarchive.LibarchiveContainer.ensure_unpacked diffoscope.comparators.utils.libarchive.LibarchiveContainer.get_member_names diffoscope.comparators.utils.libarchive.LibarchiveContainer.extract
Overview
Diffoscope may write to arbitrary locations due to an untrusted archive
Advisory
diffoscope before 76 writes to arbitrary locations on disk based on the contents of an untrusted archive. Affected functions: diffoscope.comparators.utils.libarchive.LibarchiveContainer.ensure_unpacked diffoscope.comparators.utils.libarchive.LibarchiveContainer.get_member_names diffoscope.comparators.utils.libarchive.LibarchiveContainer.extract
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20180413-82519/CVE-2017-0359
- https://nvd.nist.gov/vuln/detail/CVE-2017-0359
- https://security-tracker.debian.org/tracker/CVE-2017-0359
- https://github.com/anthraxx/diffoscope/commit/632a40828a54b399787c25e7fa243f732aef7e05
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854723
- https://github.com/anthraxx/diffoscope/commit/f379d1f611dbd5d361e12b732e07c8aee45ff226
- https://bugs.debian.org/854723
- https://github.com/advisories/GHSA-8p5c-f328-9fvv
- https://github.com/pypa/advisory-database/tree/main/vulns/diffoscope/PYSEC-2018-83.yaml
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
