
Debian and Ubuntu published fixes on November 4 for a critical flaw in APT that lets an attacker on the download path replace a verified package with one of their choosing, which then installs with root privileges. Debian's advisory DSA-6607-1 credits security researcher Max Justicz with the discovery, and Ubuntu's matching notice is USN-8996-1. Tracked as CVE-2026-109518, it affects the package manager behind apt, apt-get, and aptitude on Debian, Ubuntu, and their derivatives — which covers nearly every homelab server, Proxmox helper container, and self-hosted VM image in this audience. If you run any of those, this is a patch-now story, and the safe way to patch needs one extra flag.
APT can "merge two different package downloads after an HTTP redirect gives them the same URI," in the words of Debian's advisory. Improper file handling when resuming the download then lets a man-in-the-middle attacker replace a package after verification, and because packages install as root, the result is arbitrary code execution as root. Independent technical analysis walks through the six-step chain: the attacker answers a package request with a redirect that collides with another download already in APT's queue, returns a temporary server error to force a retry, and the resumed bytes land in the file APT already verified, so dpkg installs the attacker's package and its maintainer scripts run as root.
The root cause is insecure hard-link reuse in APT's HTTP download code, which opened the destination file without an exclusive-create flag and wrote resumed bytes into whatever inode sat at that path. The upstream fix, authored by APT maintainer Julian Andres Klode and titled "methods: Open target files exclusively," unlinks any existing file before writing resumed content so the verified file and the installed file are the same new inode. Established press coverage confirms the fix commit and notes it also closes several out-of-bounds access issues in the same APT releases.
Two honesty notes come straight from the sources. Justicz said on X that he found the zero-day with about two hours of AI-assisted review — that is his account of the discovery, not an independently verified claim about AI capability. And as of November 5 there was no public proof of concept, no known exploitation in the wild, and no CISA KEV listing, so this is a patch-before-it-burns situation rather than an active-incident one.
Exposure needs all of these at once: an APT older than the fixed build, a non-zero Acquire::Retries setting, downloads fetched over plain HTTP through a path the attacker can tamper with, and a package install running while the attacker is positioned there (source). Retries default to 3 starting with Debian 12 (Bookworm) and Ubuntu 22.04 LTS, so those releases and everything newer are exposed out of the box, while older releases are affected only if something — a config file, a CI script, a Dockerfile — enabled retries. Ubuntu's default archive URLs use HTTP, which is what makes the on-path position attainable; reaching your archives over HTTPS blocks this particular vector, but it is a layer, not the fix.
The fixed versions are apt 2.6.2 for Debian 12 via DLA-4880-1 and apt 3.0.4 for Debian 13 via DSA-6607-1. Ubuntu's fixed builds are 2.4.15ubuntu0.1 for 22.04 LTS, 2.8.4ubuntu0.1 for 24.04 LTS, 3.2.1ubuntu0.1 for 26.04 LTS, and 3.3.3ubuntu0.1 for 26.10, with ESM builds reaching back through 20.04, 18.04, 16.04, and 14.04. Upstream fixed apt 3.3.6 in unstable, while Debian testing had no fixed build yet as of November 5 — testing users should re-check the tracker rather than assume they are covered. Debian 11 is past its long-term support window with no fixed package in the tracker, so anything still on it needs a bigger plan than one upgrade. On severity scoring: the APT maintainers rate this critical, while Ubuntu assigns CVSS 4.0 7.7 High, with the lower number reflecting the attack's preconditions rather than its root-code-execution impact.
Because the upgrade itself downloads through APT, Canonical recommends upgrading with retries temporarily disabled:
sudo apt update && sudo apt upgrade -o Acquire::Retries=0That single command both applies the mitigation during the download and installs the fixed apt. Check the result with apt --version and compare against the fixed build for your release — 3.0.3 on Debian 13, for example, is still vulnerable and 3.0.4 is the fixed one. If you run unattended-upgrades, which is enabled by default from Ubuntu 16.04 onward, the fixed packages apply automatically within 24 hours of availability — but verify rather than assume, especially on boxes you rarely log into.
Three homelab-specific follow-ups. First, repeat the upgrade on every machine and container image that installs packages, not just the hypervisor — Proxmox LXC guests, distrobox and toolbox containers, and Docker images built FROM debian or FROM ubuntu all carry their own apt. Second, rebuild or re-pull container base images pinned before November 4 so fresh builds do not start vulnerable. Third, consider keeping HTTPS archive sources as defense in depth once patched, since the default HTTP archive URLs are what make the on-path position cheap (background). No indicators of compromise have been published, and a successful swap leaves dpkg's own records looking consistent, so there is no reliable way to audit after the fact — patching promptly is the defense.
Log in to comment.