Debian and Ubuntu machines: an APT flaw lets a network attacker swap in a package that runs as root. Update APT first

By George Bailey   Published: 11/05/26   4 min read

APT, the tool that installs software on Debian and Ubuntu, has a flaw that lets someone sitting in the network path swap a package after APT has checked its signature. The swapped package then installs, and its scripts run as root.

Get the CyberExperts Daily Brief: the day's top security news in 5 minutes. Free.

Fixed APT builds shipped on November 4 for every supported Debian and Ubuntu release. Most servers will pick them up through their normal update job. The ones to worry about pull packages over plain HTTP from a mirror or proxy you do not control.

APT checks the package signature, then a retried download lets an attacker swap the file. Update APT before anything else.

APT can be tricked into installing a swapped package

Max Justicz found the bug, tracked as CVE-2026-109518. Debian’s advisory DSA-6607-1 says APT can merge two different package downloads after an HTTP redirect gives them the same address, and that the way it resumes an interrupted download lets an attacker in the middle replace a package after verification.

Ubuntu rates it high, with a CVSS 4.0 score of 7.7. The attack only works when APT is set to retry failed downloads. The setting, Acquire::Retries, has defaulted to 3 since Debian 12 and Ubuntu 22.04, so those releases and everything newer are exposed out of the box.

Debian 12, Ubuntu 22.04 and newer retry downloads by default

The attacker has to control the HTTP traffic between a machine and its package server. Ubuntu names a malicious mirror or proxy as examples. Inside a data center that is a short list. For laptops that update on hotel Wi-Fi, build runners behind a shared caching proxy, or servers pointed at a small community mirror, it is longer.

Ubuntu says package sources reached over HTTPS are protected, because the attacker needs to alter plain HTTP traffic. Snap installs use a different system and are not affected. Neither Debian nor Ubuntu reports attacks.

Update APT itself first, with retries switched off

Forward this

For whoever runs our Linux servers, build machines and developer laptops: APT on Debian and Ubuntu has a bug that lets someone in the network path slip in a fake package that runs as root. Can we confirm every machine has the November 4 APT update, and move package sources to HTTPS where the mirror supports it?

Details

Hunt / verify

Source: Ubuntu APT fix guide; Debian DSA-6607-1

Sources

George Bailey

George Bailey is the byline of the CyberExperts editorial desk, the team behind the CyberExperts Daily Brief. The desk covers vulnerabilities, breaches and security news from vendor advisories, CISA alerts and other primary sources, and links those sources in every story. Questions or corrections: [email protected].