Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary.
https://security.gentoo.org/glsa/201701-03
https://github.com/libarchive/libarchive/issues/719
https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700
http://www.securityfocus.com/bid/91331
http://www.oracle.com/technetwork/topics/security/linuxbulletinjul2016-3090544.html
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
http://www.debian.org/security/2016/dsa-3657