← All articles

APT vulnerability lets altered packages run as root

APT vulnerability lets altered packages run as root

An APT vulnerability can allow an attacker to replace a checked Debian or Ubuntu software package with attacker-controlled code that then runs as root. APT, the software used to download and install packages on these Linux distributions, is affected when it retries a failed download. Root is the system account with the highest level of control, so successful exploitation could give the substituted code broad authority over the computer.

Debian, Ubuntu and APT's developers disclosed the issue on November 4. It is tracked as CVE-2026-109518, an identifier from the Common Vulnerabilities and Exposures system used to catalogue security flaws. APT's developers describe the vulnerability as critical, while Ubuntu assigns it high priority and a CVSS 4.0 score of 7.7. CVSS, or the Common Vulnerability Scoring System, is a standard method for rating the severity of security weaknesses.

The attack requires control over the HTTP traffic travelling between APT and a package server. HTTP is the web protocol used to transfer the download. Ubuntu says the attacker could be a malicious package mirror, which is a server holding copies of software packages, or a malicious proxy, an intermediary that passes network traffic between the computer and its destination. More broadly, anyone able to modify the traffic in transit could attempt the attack. This is commonly called a man-in-the-middle or MitM attack, meaning someone secretly changes data while it travels between two systems.

According to APT's developers, an attacker can combine HTTP redirects, which send a download request to another location, with ordinary temporary server errors to make APT retry. The vulnerable behaviour occurs when the computer installs a package. During that process, the attacker can substitute a package that APT has already checked with a different package containing the attacker's code.

Retries are enabled by default from Debian 12 and Ubuntu 22.04 onward. The relevant configuration option is Acquire::Retries, a setting that tells APT how many times to try a failed download again. Ubuntu says older systems, including Debian 11 and Ubuntu 20.04, are not exposed under their default settings. However, APT's developers warn that user-created scripts may have enabled Acquire::Retries on those releases, which would make the vulnerable code path relevant there as well.

Debian has released fixed APT versions for CVE-2026-109518. APT's developers also published version 2.2.5 for Debian 11, even though Debian long-term support for that release ended on August 31. At 14:58 UTC on November 4, Debian's testing branch was still distributing vulnerable APT version 3.3.5.

Ubuntu placed four updated APT builds in its security archive, the distribution channel used to deliver security updates, at 14:25 UTC on November 4. The builds are version 3.3.3ubuntu0.1 for Ubuntu 26.10, 3.2.1ubuntu0.1 for Ubuntu 26.04 LTS, 2.8.4ubuntu0.1 for Ubuntu 24.04 LTS and 2.4.15ubuntu0.1 for Ubuntu 22.04 LTS. LTS means long-term support, a release maintained for an extended period.

APT's developers said updates for Ubuntu and the Ubuntu Pro subscription service were being released. Ubuntu 14.04 users with Ubuntu Pro could already obtain an update. However, at 15:46 UTC on November 4, Ubuntu's vulnerability tracker still marked all eight releases it follows, ranging from Ubuntu 14.04 LTS through Ubuntu 26.10, as vulnerable. Ubuntu also says distributions built from Debian or Ubuntu are affected, although it does not identify them individually.

The three advisories do not describe any attacks exploiting the APT vulnerability. They also provide no workaround for computers that cannot yet install an update. The documented attack uses HTTP package sources, but the advisories do not establish whether sources accessed over HTTPS are exposed, so users should not treat HTTPS as a confirmed mitigation for this flaw. A security researcher reported the vulnerability.

Website owners and businesses running Debian or Ubuntu systems should check for the corrected APT package through their distribution's normal security-update channel, including on machines that host websites or business applications. For organisations needing support with the affected environment, AEU-I provides security-first IT, infrastructure and consulting. Until an appropriate update is available, administrators should recognise that no vendor-endorsed workaround has been published and avoid assuming that an unconfirmed configuration change resolves the risk.

Also available in: DeutschItalianoShqip