Uptycs Threat Bulletins | Cloud Security Insights for Linux and Containers

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:00 PM

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

  • Debian 13 trixie — fixed in apt 3.0.4; Debian 12 bookworm — fixed in 2.6.2; Debian unstable — fixed in 3.3.6
  • Ubuntu 26.04 LTS — fixed in 3.2.1ubuntu0.1; 24.04 LTS — 2.8.4ubuntu0.1; 22.04 LTS — 2.4.15ubuntu0.1
  • Ubuntu 20.04 / 18.04 / 16.04 / 14.04 (Pro/ESM) — fixed in 2.0.12+esm1 / 1.6.19+esm1 / 1.2.36+esm1 / 1.0.1ubuntu2.24+esm4

Impact

  • Root code execution. Attacker-supplied preinst/postinst scripts run as root during installation.
  • Fleet-wide reach. One poisoned proxy in front of a CI fleet or build farm can compromise every host behind it.
  • Malicious mirrors become dangerous. A mirror that is normally harmless under APT's signature model can deliver a compromise.
  • Default exposure. Retries are on by default in current Debian and Ubuntu releases.

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