CVE-2026-109518: APT download retry lets an on-path attacker swap a verified package

Written by Uptycs Threat Research | Nov 5, 2026, 5:00 PM UTC

Severity: High (CVSS 4.0 7.7) · Exploitation: No known exploitation · Fix available: Yes

Summary

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.

Technical details

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.

Affected products

Impact

Exploitation status

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.

Recommended actions

  1. Update the apt package itself, with retries disabled because the update travels over the vulnerable path: sudo apt update && sudo apt install -o Acquire::Retries=0 --only-upgrade '?source-package(^apt$)'.
  2. Confirm with apt-config dump | grep -i retries and apt list --installed '?source-package(^apt$)'.
  3. Switch APT sources from http:// to https:// to close the on-path vector.
  4. On hosts that installed packages over untrusted networks before updating, compare /var/cache/apt/archives/*.deb hashes with apt-cache show and review /var/log/apt/history.log.

How Uptycs helps

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.

References