Cyber Risks · Cisco Talos

Vulnerability Walkthrough: 7zip CVE-2016-2334 HFS+ Code Execution Vulnerability

Summary: Cisco Talos detailed CVE-2016-2334, a heap overflow in 7-Zip's CHandler::ExtractZlibFile function where a user-controlled size value read from an HFS+ file is copied into a fixed 0x10000 + 0x10 buffer without sanity checks. The researchers built a crafted HFS+ image, used attribute names as a heap spray, and overwrote a vftable to redirect code execution, noting that 7-Zip still lacked ASLR and DEP in the 32-bit build.

What you should know: The exploit hinged on a file extension: naming the payload .hfs skipped 7-Zip's heuristic format detection and kept the heap layout exploitable, so a single archive opened by a user was enough to hand over control flow.

Read the original at Cisco Talos ↗

Topics
Vulnerabilities & Patching
Mentions
CVE-2016-2334
Related