Published

Tech News

APT Flaw CVE-2026-109518: Update apt on Debian and Ubuntu

A flaw in APT could let an attacker on your network path run code as root during package installs. Here is the one-command fix.

1. The flaw

A man-in-the-middle can swap a package after APT has verified it, using HTTP redirects and resumed downloads, and run code as root.

2. Who can exploit it

Only someone in your network path: a malicious mirror, proxy or Wi-Fi network, over plain HTTP. HTTPS mirrors block it. No attacks have been reported.

3. Update apt

Upgrade the apt package itself.

sudo apt update && sudo apt install --only-upgrade apt

4. Check the version

apt –version does not show Ubuntu's patch suffix, so use apt policy. Fixed: Debian 13 3.0.4, Ubuntu 24.04 2.8.4ubuntu0.1, 22.04 2.4.15ubuntu0.1.

apt policy apt

5. Use HTTPS mirrors

Find any plain-HTTP sources and switch them to https://.

grep -r 'http:' /etc/apt/sources.list /etc/apt/sources.list.d/

Sources

Debian DSA-6607-1; Ubuntu USN-8996-1; CSO Online, November 2026.

FAQ

Is this being exploited?

No in-the-wild exploitation had been reported as of November 2026.

What about Ubuntu 20.04?

Ubuntu 20.04 and older need Ubuntu Pro for the fix.