Skip to content

Get notified

Get an email when a new major security incident drops. No spam, unsubscribe any time.

Only used for pwn.watch incident emails. Protected by Cloudflare Turnstile.

Become a sponsor

One slot: pwn.watch, gifs.so, flavors.design, kitze.io, every kitze repo, and an X shout-out.

Secure checkout on Polar. Right after paying you set up your ad on kitze.io.

LivePatchedPatch now

Debian APT man-in-the-middle can swap a package after verification and run code as root (CVE-2026-109518)

APT package manager (Debian)

Brought to you byTinkerer Club

The private club for people who own their servers, run their own AI, and pay $0/month for software.

A flaw in APT, Debian's package manager, lets a man-in-the-middle attacker replace a package after it has been verified, resulting in arbitrary code execution as root. Per Debian's advisory DSA-6607-1, APT can merge two different package downloads after an HTTP redirect gives them the same URI, and improper file handling when resuming an HTTP download allows the swap. It was found by Max Justicz. Debian stable (trixie) is fixed in apt 3.0.4, which also addresses several out-of-bounds access issues, and Debian 12 (bookworm) is fixed in apt 2.6.2 (DLA-4880-1); Debian testing (forky) was still listed as vulnerable. Ubuntu published fixes on Nov 4 for 26.10, 26.04 LTS, 24.04 LTS and 22.04 LTS, with Ubuntu Pro fixes for older releases. The bug needs a non-zero Acquire::Retries setting, which is the default from Debian 12 and Ubuntu 22.04 on, so older releases are unaffected in a default configuration. No exploitation has been reported.

Why this severity: Root code execution for an attacker in a man-in-the-middle position on package downloads; Ubuntu rates it CVSS 4.0 7.7 (high); no exploitation reported

Started
Nov 4, 2026

Follow this incident

Discuss on X ↗

Affected

  • apt in Debian stable (trixie) before 3.0.4
  • apt in Debian 12 (bookworm) before 2.6.2
  • apt in Ubuntu 22.04 LTS and later before the Nov 4 2026 security updates

Fixed in

  • apt 3.0.4 (Debian trixie, DSA-6607-1)
  • apt 2.6.2 (Debian bookworm, DLA-4880-1)
  • apt 3.3.3ubuntu0.1 (Ubuntu 26.10)
  • apt 3.2.1ubuntu0.1 (Ubuntu 26.04 LTS)
  • apt 2.8.4ubuntu0.1 (Ubuntu 24.04 LTS)
  • apt 2.4.15ubuntu0.1 (Ubuntu 22.04 LTS)

Timeline3

  1. Debian publishes DSA-6607-1 for apt (CVE-2026-109518): a man-in-the-middle attacker can replace a package after verification and run code as root; fixed in apt 3.0.4 for trixie.

  2. The advisory reaches the Hacker News front page.

  3. Ubuntu ships fixed apt for 26.10, 26.04 LTS, 24.04 LTS and 22.04 LTS (Ubuntu Pro fixes for older releases) and rates it CVSS 4.0 7.7 high; Debian's tracker lists bookworm fixed in apt 2.6.2 (DLA-4880-1), with forky still vulnerable.

Advisories3

News & write-ups1

Get an email when a new major security incident drops. No spam, unsubscribe any time.