1-minute read
What a defender needs to know
APT can pass a package hash check and then install different bytes after a redirected download retry. Debian and Ubuntu fixed CVE-2026-109518 on November 4. An on-path attacker, malicious mirror, or manipulating proxy must control package responses while the client has Acquire::Retries above zero. The substituted package can run maintainer code as root during installation. Debian 12 and Ubuntu 22.04 and later enable retries by default; an override can expose older releases too.
Check APT where jobs run, including build stages and ephemeral runner images. Read the installed version with dpkg-query -W -f='${Version}\n' apt and look for retry overrides with apt-config dump | grep -i Acquire::Retries; no override entry calls for checking the distribution default. Debian 12 is fixed in 2.6.2, Debian 13 in 3.0.4, Ubuntu 22.04 in 2.4.15ubuntu0.1, Ubuntu 24.04 in 2.8.4ubuntu0.1, Ubuntu 26.04 in 3.2.1ubuntu0.1, and Ubuntu 26.10 in 3.3.3ubuntu0.1. Ubuntu 20.04 has 2.0.12+esm1 through Ubuntu Pro.
Disable retries for the upgrade command itself, install the fixed APT package, and rebuild runner and container images. In a fresh job, check the APT version inside the running image rather than relying on the image tag. To investigate earlier installs, correlate package-mirror traffic and dpkg maintainer-script process events with the specific job step and resulting image digest.
