Cve 2026 109518 Apt Download Verification Bypass
APT could verify a package and then, when retrying a download after a redirect, accept a different package from an on-path attacker. If that package was installed, its maintainer scripts ran as root.
Published on systemweakness.com
CVE-2026–109518 is a high-severity vulnerability in APT affecting Debian, Ubuntu, and derivative Linux distributions. An on-path attacker who can manipulate package-download traffic may be able to replace a package after APT verifies it.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a time-of-check to time-of-use race in APT's download retry logic, where a hard-linked or replaced file is installed after verification instead of the file that was checked.
Impact
An attacker on the network path, a malicious mirror or a compromised proxy could get an attacker-controlled package installed and its maintainer scripts run as root, but only when retries are enabled and a download is retried after a redirect.
What the attacker needed
Vulnerable APT version; Acquire::Retries above 0; APT follows a redirect and retries; attacker can alter package traffic
The fix
APT was fixed in the listed versions; where patching is not yet possible, setting Acquire::Retries to 0 removes the required retry condition.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
APT is the program Debian and Ubuntu use to download and install software packages. It normally checks a package's signature before installing it, but a timing flaw meant that when a download was retried, the checked file could be swapped for a different one. An attacker sitting on the network path could then get their own package installed with full system rights.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.