Debian and Ubuntu APT Flaw Lets MitM Attackers Swap Verified Packages and Run Code as Root
Executive Summary
A flaw in Debian and Ubuntu's APT package manager allows an attacker who can modify package downloads to replace a verified package with malicious code. The malicious package runs as root when APT retries failed downloads, which it does by default from Debian 12. The vulnerability was disclosed by Debian, Ubuntu, and APT developers on Nov 4.
Original Description
A flaw in APT, the package manager for Debian and Ubuntu, allows an attacker who can modify package downloads to swap a checked package for their own. The attacker's code then runs as root, according to advisories that Debian, Ubuntu, and APT's developers published on November 4. The attack needs APT to retry failed downloads, which it does by default from Debian 12 and