APT before 1.0.9, when the Acquire::GzipIndexes option is enabled, does not validate checksums, which allows remote attackers to execute arbitrary code via a crafted package.
http://www.debian.org/security/2014/dsa-3025
http://ubuntu.com/usn/usn-2348-1