A serious security vulnerability has been found in 7-Zip
pcgamer.com
pcgamer.com
> CVE-2018-10115 - Incorrect initialization logic of RAR decoder objects in 7-Zip 18.03 and before can lead to usage of uninitialized memory, allowing remote attackers to cause a denial of service (segmentation fault) or execute arbitrary code via a crafted RAR archive.
Excellent article from the bug discoverer here: https://landave.io/2018/05/7-zip-from-uninitialized-memory-t...
Some good discussion in the linked HN discussion from a couple of days ago.
7-Zip infers filetype (by necessity in many cases), so any file that you open with 7-zip can trigger the problem.
People definitely would open: .zip, .7z, .gz, .xz, .iso, ...
So, your antivirus can scan your .png files, try to uncompress them as rar (based on their content) and execute malicious code without you having even the slightest idea of what is happening.
A similar thing is with ldd (I don't know if this still works and can't search or check right now): https://news.ycombinator.com/item?id=902958