Archive parsing is the process of reading compressed file formats such as ZIP, RAR, 7z, or tar-based archives and turning their metadata and contents into files a program can use. Security tools, updaters, browsers, mail clients, and file managers all do this automatically when they inspect or extract an archive.
It matters because archive data is often attacker-controlled. A malicious archive can hide decompression bombs, path traversal entries, malformed headers, or crafted data that triggers memory corruption in the parser. In real attacks, this can lead to denial of service, file overwrite, code execution, or a foothold for malware delivery. Defenders reduce risk by using well-tested libraries, enforcing size and depth limits, validating paths before extraction, sandboxing unpacking, and keeping archive handlers patched.


