What broke (and why you should care)

Heads up, package jockeys: a bug in the APT package manager can let someone in the middle of your download sneaky-swap a verified package for a dodgy one and have it run as root. In plain English: if an attacker can tamper with the HTTP traffic between your machine and the package server, they can push their own code onto your system during an install.

The trick relies on APT retrying failed downloads. That retry behavior is enabled by default on newer releases (Debian 12 and Ubuntu 22.04 and later), and if APT bites on a malicious redirect or temporary server error it may end up installing the swapped package. The bug is tracked as CVE-2026-109518, and security folks flagged it as serious.

Who’s affected, what’s fixed, and what to do

Short version: many Debian- and Ubuntu-based systems are in the crosshairs unless they’ve already received patched APT builds. The maintainers have pushed fixes and some Ubuntu releases got updated APT packages.

  • Ubuntu 26.10 — updated APT build 3.3.3ubuntu0.1
  • Ubuntu 26.04 LTS — updated APT build 3.2.1ubuntu0.1
  • Ubuntu 24.04 LTS — updated APT build 2.8.4ubuntu0.1
  • Ubuntu 22.04 LTS — updated APT build 2.4.15ubuntu0.1

Debian released patched APT versions as well (Debian 11 received APT 2.2.5). Some testing branches were still running vulnerable APT builds as of early November, so if you use bleeding-edge repos, double-check.

A few operational notes:

  • The attack works when package installs happen and an attacker can alter HTTP responses — think malicious mirrors, proxies, or anyone messing with your traffic.
  • The exploit leverages redirects and transient server errors to force retries; the retry setting in APT is called Acquire::Retries.
  • The original advisories described the attack over HTTP and did not say whether package sources accessed over HTTPS are vulnerable, so don’t assume safety without checking.
  • The issue was reported by Max Justicz; vendors published advisories on November 4.

There weren’t any public exploit reports included with the advisories, and they didn’t offer a ready-made workaround for systems that can’t upgrade immediately. If you can, update APT now. Otherwise, consider limiting or avoiding untrusted HTTP mirrors and auditing your APT configuration — especially any tweaks that change retry behavior.

In short: update APT, be suspicious of sketchy mirrors, and if your machine starts acting like a pirate ship, check for unexpected packages. Stay patched and avoid letting strangers play traffic director between you and the archive — your root account will thank you.