Security & Cyber - 4 min read - 5 November 2026

APT will happily retry its way into a swapped package: CVE-2026-109518 and the root shell on the other side of a bad mirror

A signed package, a bad mirror and a retry: how APT can be steered into installing the wrong thing as root, and the checks to run on your fleet and images.

The part of Linux administration most of us trust blindly is the bit where a package gets signed, downloaded and installed as root. On 4 November Debian, Ubuntu and the APT developers all published advisories for a flaw that undermines that trust, and The Hacker News has the summary.

The short version

The bug is CVE-2026-109518, reported by Max Justicz. Someone able to tamper with HTTP traffic between a machine and its package source (a rogue mirror, a proxy, a hostile network segment) can trick APT into installing a package other than the verified one. The code then runs as root. The APT developers call it critical; Ubuntu rates it high, with a CVSS 4.0 score of 7.7.

The trigger is APT's retry behaviour. The attacker uses redirects and ordinary-looking temporary server errors to make APT try again, and the swap happens in that retry path. The reporting does not spell out the code-level cause, so read the vendor advisories before making claims beyond that.

Who is exposed

  • Retries are on by default from Debian 12 and Ubuntu 22.04 onwards, so those and newer releases are the main worry.
  • Older systems such as Debian 11 and Ubuntu 20.04 are not exposed by default, but plenty of build scripts set Acquire::Retries by hand. Those machines are in scope if yours does.
  • Anything built on Debian or Ubuntu inherits it: container base images, appliance firmware, CI runners.
  • No advisory reports exploitation in the wild yet, and none offers a workaround for hosts that cannot update.

Fixed builds

Ubuntu published fixes on 4 November for 26.10 (3.3.3ubuntu0.1), 26.04 LTS (3.2.1ubuntu0.1), 24.04 LTS (2.8.4ubuntu0.1) and 22.04 LTS (2.4.15ubuntu0.1), with other releases and Ubuntu Pro following. Debian has fixed packages, including 2.2.5 for Debian 11. At the time of reporting, Ubuntu's tracker still showed every release from 14.04 LTS to 26.10 as vulnerable, so check the tracker rather than assume.

What to do this week

  • Update APT itself first, on workstations, servers and the base images you build from. Rebuild images; patching the running container does not fix the next one you pull.
  • Grep your scripts and images for Acquire::Retries. Anything that raised it on an older release has switched the vulnerable path on.
  • Inventory your mirrors and proxies. Know which internal caches your fleet talks to, who runs them, and whether that traffic crosses networks you do not control.
  • Prefer HTTPS sources where the repository offers them. The advisories describe the attack over HTTP; the reporting I read does not say whether HTTPS sources are affected, so treat that as a likely reduction in risk rather than a cure.
  • Look at how unattended upgrades run in places nobody watches: edge boxes, lab machines, build agents.

The awkward truth here is that the signature check did its job. The weakness was in the plumbing around it, and plumbing is what we tend to skip when we audit. Tell us if you want help mapping where your fleet gets its packages from: sales@halfteck.com.

Sources: The Hacker News, 4 November 2026, which summarises the Debian, Ubuntu and APT developer advisories published that day.

Explore more resources

Browse our full library of enterprise cloud, software, data and AI content.

View all resources