The bug in two sentences
When an HTTP redirect gives two different downloads the same URI, APT can merge them. A file-handling error when resuming an HTTP download then lets an attacker replace a package after it has been verified: the APT team describes already-verified hard links being overwritten with a payload of the attacker’s choice. A.deb package runs its scripts as root during installation. The flaw therefore leads to root code execution on the machine.
Requirements:
- the attacker can tamper with HTTP traffic between the machine and the archive server: a proxy, an intermediate network, or a malicious mirror;
- the machine installs a package during the attack;
- APT is set to retry failed downloads (
Acquire::Retriesother than 0). That has been the default since APT 2.3.2, which means Debian 12 (bookworm) and Ubuntu 22.04 LTS.
The flaw is not in CISA’s Known Exploited Vulnerabilities (KEV) catalog (November 13, 2026 version). It affects every tool built on APT:
apt, apt-get, aptitude, and Ubuntu’s graphical software centers. Snap packages are not affected.Sizing your exposure
The question to ask: does your machine fetch packages over HTTP, with retries turned on? That is the default on Debian 12, Debian 13, and Ubuntu 22.04 and later.
To find out whether your sources use HTTP:
Updating APT per distribution
The fix is an update of theapt package.
Ubuntu recommends turning retries off while the fix installs: without retries, the flaw cannot be exploited, by an on-path attacker or by a malicious mirror. The update itself cannot be hijacked.
Debian
Ubuntu
The fixes ship in notice USN-8996-1. These are the commands Ubuntu recommends:
archive, security, and ports servers:
apt update reports it as an error.
Docker containers
In a Debian or Ubuntu image, update APT before installing anything else, then rebuild the image:Mitigation until you can patch
If you cannot update right away, turn retries off in APT’s configuration. This is the mitigation posted on oss-security alongside the Debian advisory: with no retry, the flaw’s precondition is gone.Checking the mitigation
Reverting the mitigation
Once the fixedapt package is installed, remove the file to restore the default retries:

