Severity: High (CVSS 4.0 7.7) · Exploitation: No known exploitation · Fix available: Yes
CVE-2026-109518 is a time-of-check to time-of-use flaw (CWE-367, CWE-62) in APT's HTTP download method, used by apt, apt-get, aptitude and graphical frontends. An on-path attacker can swap a .deb after APT has verified it, so the attacker's maintainer scripts run as root. Max Justicz found it, and Debian, Ubuntu and the APT maintainers published fixes on 4 November 2026 (DSA-6607-1, DLA-4880-1, USN-8996-1). It is scored CVSS 4.0 7.7, and upstream rates it Critical.
APT's integrity model hashes every package against signed metadata, so plain HTTP is normally safe. This bug breaks the assumption that the file APT hashed is the file dpkg later opens. Debian names two weaknesses: resumed HTTP transfers write into an already existing target file, and redirects that make two fetches resolve to the same URI are merged, leaving one inode behind two names in /var/cache/apt/archives/partial/. Together they let an attacker write into the same inode as a package that already passed verification. Exploitation needs an on-path HTTP position (rogue Wi-Fi, compromised caching proxy or malicious mirror), redirects plus transient errors to force retries, and Acquire::Retries > 0, which defaults to 3 from Debian 12 and Ubuntu 22.04 onward. HTTPS sources block it. The upstream fix (APT 3.3.6) opens target files exclusively.
No exploitation has been reported, it is not in CISA KEV and there is no public proof of concept. Hosts that install packages over untrusted networks or through shared proxies should be patched first.
sudo apt update && sudo apt install -o Acquire::Retries=0 --only-upgrade '?source-package(^apt$)'.apt-config dump | grep -i retries and apt list --installed '?source-package(^apt$)'.http:// to https:// to close the on-path vector./var/cache/apt/archives/*.deb hashes with apt-cache show and review /var/log/apt/history.log.Uptycs vulnerability management identifies Debian and Ubuntu hosts, containers and cloud workloads running affected apt versions so teams can prioritize patching. Uptycs Threat Research continues to monitor this vulnerability and will update this bulletin if exploitation activity changes.