# Debian and Ubuntu APT Flaw Lets MitM Attackers Swap Verified Packages and Run Code as Root

**URL:** <https://forums.thehomestack.io/t/debian-and-ubuntu-apt-flaw-lets-mitm-attackers-swap-verified-packages-and-run-code-as-root/26826>\
**Category:** The Hacker News\
**Created:** [November 4, 2026, 5:46pm UTC](https://forums.thehomestack.io/t/debian-and-ubuntu-apt-flaw-lets-mitm-attackers-swap-verified-packages-and-run-code-as-root/26826 "2026-11-04T17:46:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinhood1995](https://forums.thehomestack.io/letter_avatar_proxy/v4/letter/r/48db29/32.png) [@robinhood1995](https://forums.thehomestack.io/u/robinhood1995)\
**Post date:** [November 4, 2026, 5:46pm UTC](https://forums.thehomestack.io/t/debian-and-ubuntu-apt-flaw-lets-mitm-attackers-swap-verified-packages-and-run-code-as-root/26826/1 "2026-11-04T17:46:04Z")

</div>

A flaw in APT, the package manager for Debian and Ubuntu, allows an attacker who can modify package downloads to swap a checked package for their own.

The attacker’s code then runs as root, according to advisories that&nbsp;Debian,&nbsp;Ubuntu, and&nbsp;APT’s developers&nbsp;published on November 4. The attack needs APT to retry failed downloads, which it does by default from Debian 12 and

* * *
This is a companion discussion topic for the original entry at [https://thehackernews.com/2026/11/debian-and-ubuntu-apt-flaw-lets-mitm.html](https://thehackernews.com/2026/11/debian-and-ubuntu-apt-flaw-lets-mitm.html)
