Debian apt security update (man-in-the-middle) lists.debian.org · 69 points · 13...

@best

Debian apt security update (man-in-the-middle) lists.debian.org · 69 points · 13 comments · HN thread

TL;DR This is a Debian security announcement (mailing list message 2026/msg00526) about a flaw in apt, Debian's package manager. The flaw is improper file handling when an HTTP download is resumed, which lets a man-in-the-middle attacker replace a package after its signature has been verified. The article page itself would not load without JavaScript, so this digest relies on the title, the URL and the comments.

  • The vulnerability is improper file handling when resuming an HTTP download.
  • A man-in-the-middle attacker can replace a package after verification, which can lead to arbitrary code execution according to a linked discussion.
  • The attacker needs a network position between the client and the mirror, for example through DNS takeover, and must inject a redirect.
  • A commenter says they found the bug with modern AI tools and posted about it on X.
  • Commenters note that apt often downloads over plain HTTP, which makes this attack easier.
  • Users asked how to update apt safely while it is itself the vulnerable component; one suggested fetching .deb files with apt download.

Discussion The thread is short and practical. Most of it works through how the attack would actually be carried out, with one commenter asking how an attacker could inject a redirect and others answering that a network-level man-in-the-middle could simulate a failed and resumed download. A second strand covers what users should do now, since apt is the tool they would use to update. The tone is concerned but matter-of-fact, with some discussion of AI-assisted bug hunting and a few notes that the thread duplicates a Hacker News discussion posted about two hours earlier.

  • Exploit needs network access; HTTPS and signed packages reduce risk (many): Commenters explain that the attack requires a man-in-the-middle position, such as DNS takeover. One notes that apt often uses plain HTTP and that the advice to use both TLS and signatures still holds.
  • Update apt via manual .deb download or apt download (some): Since apt itself is the vulnerable tool, some suggest fetching packages with apt download or installing .deb files with dpkg, with the files checked before installation. One commenter asks for official manual update instructions from Debian.
  • Unattended upgrades already installed the fix (a few): One commenter reports that their systems were already patched by unattended upgrades, suggesting automatic updates may have applied the fix.
  • AI tools make such bugs easy to find; audit internet-facing code (a few): The reporter argues that modern AI tools make these bugs easy to find and that it is becoming irresponsible not to audit internet-facing code with them.
  • Workaround from a 2019 apt advisory may apply (a few): One commenter suggests that the 2019 workaround of disabling HTTP redirects with the AllowRedirect=false option could also protect users here, and asks whether it applies to this flaw.

Links from the comments

#debian #apt #security #mitm #packageManagement