AZSecureby Azguards Technolabs

Security bulletins · Debian / Ubuntu

APT on Ubuntu and Debian: tampered package downloads can run code as root (CVE-2026-109518)

The tool that installs updates on Ubuntu and Debian could be tricked into installing an attacker's package. It takes someone in the network path, or a malicious mirror or proxy.

High · CVSS 7.7Server software

Free website scan

Is your store serving malware right now?

Checks home, product, cart and checkout pages, blocklists, exposed files and spam shown only to Google. Takes about a minute.

What happened

Debian and Ubuntu published fixes on 4 November 2026 for a flaw in APT, the package manager. Someone who can alter the HTTP traffic between a server and its package archive can get APT to install a package it never verified, which means code running as root. The cause is how APT reuses files when a download is redirected and retried.

It depends on download retries (Acquire::Retries) being on, which is the default from Ubuntu 22.04 and Debian 12. Older releases are only exposed if retries were switched on by hand. Archives reached over HTTPS are protected against this kind of tampering. No attacks have been reported.

What to do

  1. Update apt itself first (apt update && apt install apt), ideally from a network you trust, then install the rest of your updates.
  2. Check the result with apt --version or dpkg -l apt against the fixed versions above.
  3. Point your package sources at https:// mirrors where your provider offers them.

Not sure if your site is affected?

The free scan looks at your site from outside: what it runs, exposed files, injected scripts and known malicious domains. It can't read your exact patch level. A deep scan can: it checks the installed versions and packages against this bulletin and looks for what attackers leave behind.

Patched late, or not sure when?

A deep scan checks your server with read-only access, and an Azguards engineer signs off the report.

Sources

Posted by the Azguards security team. Last reviewed .