News for hackers. Stuff that matters.
Re:Debian apt security update: man-in-the-middle arbitrary c... by hiddenvulkcan on Wednesday November 04, 2026 @07:56AM (#50364897)
Yikes, that vuln in apt is pretty bad! I think a lot of the newer wave of vulnerabilities being found generally seem to have a low likelihood of being reached, but this seems somewhat plausible? I'm assuming this would be done by compromising a mirror, in order to do the redirect?
Re:Debian apt security update: man-in-the-middle arbitrary c... by bradfa on Wednesday November 04, 2026 @08:21AM (#50365179)
More likely just a man in the middle attack. Apt typically uses HTTP (no TLS) as the signatures give the security. But in this case it sounds like the vulnerability is that after a successful signature check the legit file can be overridden by the attacker through some HTTP shenanigans.
Re:Debian apt security update: man-in-the-middle arbitrary c... by hiddenvulkcan on Wednesday November 04, 2026 @08:39AM (#50365364)
Well, at least it's Debian, so even if they used HTTPS they'd still be vulnerable!

I didn't know that about apt, interesting choice!

Re:Debian apt security update: man-in-the-middle arbitrary c... by TZubiri on Wednesday November 04, 2026 @08:45AM (#50365425)
It's not 'Attack Vector: Network' in cvss, so it's probably scoring lower than a 7.

EDIT: With 'AV:Adjacent Network' and A 'User Interaction: Required' and max impact (High on Confidentiality, Integrity and Availability, assuming worst case), then it gets a score of 8.

The subjectives lower the severity to my eyes as well, including the use of HTTP mirrors (which is the default notwithstanding), and the attacker needing to be an existing mirror at the time of the announcement, which is already a vetted group (or be in the path between the user and the mirrors, umm that is quite possible though, but quite hard to target). And finally the window for the disclosure and attacks is almost null, someone needs to use apt to be vulnerable, but if they use apt, they are probably autoupdating apt itself, I wonder if a simple 'apt install thing' will trigger an apt upgrade, in order to patch those that are not running autoupgrades.

Re:Debian apt security update: man-in-the-middle arbitrary c... by RagingCactus on Wednesday November 04, 2026 @08:54AM (#50365551)
Nitpick about CVSS scoring:

I always strongly argue against framing MITM scenarios as AV:Adjacent as MITM attacks can be performed at any point of the transmission path. If someone MITMs the package mirror the attacker is certainly not adjacent to the vulnerable component. I argue in favor of using Attack Complexity: High instead, as you do need to be in a MITM position.

And while UI:Required could be argued, there are also unattended upgrades and updates are performed regularly anyway. CVSS 4 makes some progress here with UI active vs passive, but ultimately CVSS is often not helpful for capturing the unique risk of a vulnerability.

Re:Debian apt security update: man-in-the-middle arbitrary c... by vesinisa on Wednesday November 04, 2026 @08:02AM (#50364973)
No word as of yet if Ubuntu's apt is also impacted.

Sounds like the vulnerability is in the HTTP handling code, and because apt downloads packages over plain HTTP a man-in-the-middle position would be enough to exploit it.

It almost seems like a repeat of another critical apt vulnerability from 2014: https://lists.debian.org/debian-security-announce/2014/msg00...

Re:Debian apt security update: man-in-the-middle arbitrary c... by greggsy on Wednesday November 04, 2026 @08:05AM (#50365015)
I thought there might be some kind of hash or signature, but I’m assuming that can be forged along with the main payload?
Re:Debian apt security update: man-in-the-middle arbitrary c... by vesinisa on Wednesday November 04, 2026 @08:13AM (#50365096)
From the short description in the advisory, would seem like the attacker can cause the tool to overwrite the file after signature verification.
Re:Debian apt security update: man-in-the-middle arbitrary c... by TZubiri on Wednesday November 04, 2026 @08:37AM (#50365345)
Of course not, Debian is one of the most robust pieces of software around. They wouldn't do something idiotic like relying on the hash being sent with the payload through the same channel.

I think the idea is that debian distributes the hash themselves through their domain, and mirrors offer the downloads either through http or https. So that you don't need to trust the mirror, you just verify the debian given hash. Only weakness would be a hash collision or a cve like this.

Re:Debian apt security update: man-in-the-middle arbitrary c... by DaSHacka on Wednesday November 04, 2026 @09:02AM (#50365648)
AFAIK this isn't actually true for any distribution. This would break selfhosted mirrors and their clients hosted on airgapped networks, and create a single point of failure for users.

The way packages are validated actually is through the same channel as you download the packages themselves from (IE your mirror), they just are signed with the Debian package signing key(ring), of which only a select few maintainers have authorized private keys for.

This does mean an adversary (whether a MITM if you're using HTTP or malicious operator on the mirror server itself) can technically serve you old versions of an (officially signed) package indefinitely and your package manager would be none the wiser, but otherwise this approach actually works quite well.

Re:Debian apt security update: man-in-the-middle arbitrary c... by dinosaurdynasty on Wednesday November 04, 2026 @11:56AM (#50368370)
The signatures do expire (which is an annoyance when working with snapshot.debian.org).
Re:Debian apt security update: man-in-the-middle arbitrary c... by dist-epoch on Wednesday November 04, 2026 @10:34AM (#50367052)
An attacker might replace a package with a previous one which has a vulnerability. Downgrade attack. Unclear if the apt client will check if version is the expected one after requesting a package.
Re:Debian apt security update: man-in-the-middle arbitrary c... by angry_octet on Wednesday November 04, 2026 @08:22AM (#50365196)
Despite with the 'no need for TLS, apt packages are signed' clowns would have you believe, you can usually point to a package mirror with https. This has the added advantage of preventing a mitm from knowing what packages you install or blocking selected packages.
Re:Debian apt security update: man-in-the-middle arbitrary c... by anthk on Wednesday November 04, 2026 @08:25AM (#50365227)
Every mirror will know that because of HTTPD logs.
Re:Debian apt security update: man-in-the-middle arbitrary c... by DaSHacka on Wednesday November 04, 2026 @08:53AM (#50365531)
In fairness to GP, that wouldn't be a man in the 'middle', the mirror is the end destination for your traffic.
Re:Debian apt security update: man-in-the-middle arbitrary c... by InsidiousWombat on Wednesday November 04, 2026 @08:33AM (#50365300)
well when CA use 4 as key that kinda matters less
Re:Debian apt security update: man-in-the-middle arbitrary c... by bulbar on Wednesday November 04, 2026 @11:33AM (#50368024)
They usually don't.
Re:Debian apt security update: man-in-the-middle arbitrary c... by JamesSwift on Wednesday November 04, 2026 @12:19PM (#50368641)
But sometimes do
Re:Debian apt security update: man-in-the-middle arbitrary c... by bulbar on Thursday November 05, 2026 @12:34AM (#50375588)
What's the argument then? Not signing the packages anymore because that has now been faulty?

There's no sensible argument here.

Re:Debian apt security update: man-in-the-middle arbitrary c... by steve1977 on Wednesday November 04, 2026 @12:50PM (#50369075)
That’s not very typical, I’d like to make that point.
Re:Debian apt security update: man-in-the-middle arbitrary c... by angry_octet on Wednesday November 04, 2026 @04:14PM (#50371621)
So you're not using internet banking any more?
Re:Debian apt security update: man-in-the-middle arbitrary c... by dinosaurdynasty on Wednesday November 04, 2026 @11:53AM (#50368324)
> preventing a mitm from knowing what packages you install

Package size is unique enough that just seeing the size of the transfer will usually be enough to tell.

Re:Debian apt security update: man-in-the-middle arbitrary c... by angry_octet on Wednesday November 04, 2026 @04:25PM (#50371791)
Apt uses persistent connections and has multiple requests in flight at once (Acquire::http::Pipeline-Depth). If you acquired the entire history of downloads then you could match it against software updates, and possibly identify by-choice dependency sets, but it would be quite a project.
Re:Debian apt security update: man-in-the-middle arbitrary c... by kpcyrd on Wednesday November 04, 2026 @09:49AM (#50366297)
> Updates for the affected Debian, Debian LTS, Debian eLTS, Ubuntu, and Ubuntu Pro channels are being released. > > An update for apt 1.0.1ubuntu2.24 has been made available to Ubuntu Pro customers running Ubuntu "trusty" through the Ubuntu Pro subscription service, and a 3.3.3ubuntu0.1 for stonking.

From the original disclosure: https://lists.debian.org/deity/2026/11/msg00005.html

For context, Ubuntu trusty and apt 1.0.1 is from 2014.

Re:Debian apt security update: man-in-the-middle arbitrary c... by justicz on Wednesday November 04, 2026 @10:04AM (#50366581)
Ubuntu is affected.
Re:Debian apt security update: man-in-the-middle arbitrary c... by greggsy on Wednesday November 04, 2026 @08:05AM (#50365002)
> We recommend that you upgrade your apt packages.

Is there a German word for a broken tool that can only be fixed by using the same broken tool?

Re:Debian apt security update: man-in-the-middle arbitrary c... by pllbnk on Wednesday November 04, 2026 @08:14AM (#50365098)
Münchhausenwerkzeug.
Re:Debian apt security update: man-in-the-middle arbitrary c... by ahofmann on Wednesday November 04, 2026 @08:17AM (#50365133)
Well, of course there is "Selbstreparaturparadoxon", but nobody uses that. This is more like a Münchhausen-Problem, where Baron Münchhausen pulls himself out of the swamp by his own hair.
Re:Debian apt security update: man-in-the-middle arbitrary c... by veeti on Wednesday November 04, 2026 @08:28AM (#50365247)
For what it's worth there is an apt "Acquire::http::AllowRedirect" option that can be disabled.
Re:Debian apt security update: man-in-the-middle arbitrary c... by hackyhacky on Wednesday November 04, 2026 @09:10AM (#50365769)
> For what it's worth there is an apt "Acquire::http::AllowRedirect"

Odd, I am not familiar with that that German word.

Re:Debian apt security update: man-in-the-middle arbitrary c... by ptx on Wednesday November 04, 2026 @09:43AM (#50366213)
Is this the right way to specify it when upgrading the vulnerable apt?

  # apt -o 'Acquire::http::AllowRedirect=false' update
  # apt -o 'Acquire::http::AllowRedirect=false' install apt
Re:Debian apt security update: man-in-the-middle arbitrary c... by 12312987 on Wednesday November 04, 2026 @08:13AM (#50365093)
Debian is such a clown show. The SSL fiasco, apt over http, overpatching packages, allowing AI, kicking out packages over some lintian bullshit.

How are you going to update if apt is compromised?

Re:Debian apt security update: man-in-the-middle arbitrary c... by qwert199 on Wednesday November 04, 2026 @08:24AM (#50365216)
An here we see: The Debian people never introspect or change, because they were the first ones in open source, have too much power and outnumber the critics.

Truth by flagging.

Re:Debian apt security update: man-in-the-middle arbitrary c... by InsidiousWombat on Wednesday November 04, 2026 @08:31AM (#50365280)
many mirrors are also available over https, you can just change that
Re:Debian apt security update: man-in-the-middle arbitrary c... by DaSHacka on Wednesday November 04, 2026 @09:09AM (#50365752)
Basically all of them are, many of the larger mirror servers host multiple distributions, with some defaulting to/requiring HTTPS nowadays anyway.
Re:Debian apt security update: man-in-the-middle arbitrary c... by throwaway74354 on Wednesday November 04, 2026 @08:32AM (#50365291)
>How are you going to update if apt is compromised?

Download the package with your http client of choice, install with sudo dpkg --verify -i

Re:Debian apt security update: man-in-the-middle arbitrary c... by teddyh on Wednesday November 04, 2026 @08:48AM (#50365468)
I’ll just note that you had to go back more than 20 years to get that short list of complaints.
Re:Debian apt security update: man-in-the-middle arbitrary c... by 1024612u1 on Wednesday November 04, 2026 @09:30AM (#50366032)
When Ian Murdock was alive, Debian had much better quality. I never believed it was a suicide, especially now, after such a long history of critical incidents like the ones you mentioned. They don't look random anymore and it feels like they were all introduced on purpose by the same people who wanted us to believe the suicide version.
Re:Debian apt security update: man-in-the-middle arbitrary c... by mariofdistrust on Wednesday November 04, 2026 @08:15AM (#50365116)
yey, my computers and containers aren't vulnerable (^-^)
Re:Debian apt security update: man-in-the-middle arbitrary c... by serbuvlad on Wednesday November 04, 2026 @08:26AM (#50365232)
It's always been strange to me and I've been saying forever that I don't get why package repos don't use HTTPS.
Re:Debian apt security update: man-in-the-middle arbitrary c... by ferngodfather on Wednesday November 04, 2026 @08:30AM (#50365268)
I get it to a point because it can be a chicken and egg situation sometimes, but there has got to be a better way.
Re:Debian apt security update: man-in-the-middle arbitrary c... by InsidiousWombat on Wednesday November 04, 2026 @08:30AM (#50365275)
theoretical model means that the transfer method doesn't matter.

Of course, that breaks if implementation checks the signatures in wrong moment

Re:Debian apt security update: man-in-the-middle arbitrary c... by vesinisa on Wednesday November 04, 2026 @08:46AM (#50365440)
There have already been quite a few vulnerabilities in the implementation that would have been avoided if the transport itself was simply protected in line with the industry standard practice of using TLS by default.
Re:Debian apt security update: man-in-the-middle arbitrary c... by InsidiousWombat on Wednesday November 04, 2026 @09:34AM (#50366088)
The ones I looked at could be summed up to "well the redirects are misbehaving again"

Assuming transport is compromised and you can only trust package signatures IS A GOOD THING. Extra security layer on top of it is nice of course but arguably if it was all https we would've never found this bug and then in case of CA compromise attacker would have plenty of bugs to use to fool apt.

The problem is that they failed ordering of validation; it should be "download from source" (of any type, remember that http(s) isn't only way) -> put into temporary dir -> validate, regardless of source used.

There are also edge cases where HTTPS does hurt you, on system without reliable time (and there is quite a few SBCs that don't have RTC) you would just not be able to download the packages at all because all certs are in future.

Re:Debian apt security update: man-in-the-middle arbitrary c... by tremon on Wednesday November 04, 2026 @10:16AM (#50366779)
> it should be "download from source" (of any type, remember that http(s) isn't only way) -> put into temporary dir -> validate, regardless of source used

This is what apt already does. The problem is that a malevolent source can see a client downloading package #1, then on seeing a request for package #2 it issues a redirect to a doctored package #1 and because apt stores files based on the remote name and not the requested name, it will overwrite already-downloaded package #1. The validation fails on downloaded package #2 but apt doesn't abort the install process, it simply skips it (and any dependencies) and continues to install the downloaded and previously-validated package #1.

There's plenty of ways to solve this, and none are obvious if you are unaware of this attack vector:

a) use per-package tempdir instead of per-source: no obvious benefit

b) use request package name instead of remote url filename: it would be dangerous for apt to assume that it knows better than a package mirror what the expected filename for a package is (it's strictly defined by Debian policy)

c) immediately delete downloaded package if validation fails: obstructs problem analysis and digital forensics

d) abort install process if a package fails validation: reduces resilience in the face of network errors (e.g. if the mirror is in the process of updating itself)

Re:Debian apt security update: man-in-the-middle arbitrary c... by vesinisa on Wednesday November 04, 2026 @01:12PM (#50369374)
Not exactly sure how would a system be able to connect to Internet to download package updates but be unable to source a correct time reference from NTP?

But yes, it should probably be a Debian installer question: use HTTPS sources or not. Debian is the universal operating system but most users running a desktop or server setup should choose YES. The setups where you really want plain HTTP sources are an edge case and users setting up such systems probably already know about their special requirements, so HTTPS sources should really be presented as the default / "if in doubt" option.

Re:Debian apt security update: man-in-the-middle arbitrary c... by krautsauer on Wednesday November 04, 2026 @08:48AM (#50365463)
Easier to put caching proxies on the path?
Re:Debian apt security update: man-in-the-middle arbitrary c... by Avamander on Wednesday November 04, 2026 @09:07AM (#50365720)
Who actually does that this day and age?
Re:Debian apt security update: man-in-the-middle arbitrary c... by tremon on Wednesday November 04, 2026 @09:58AM (#50366444)
I do. Helps massively when seeding virtual machines using auto-install scripts.
Re:Debian apt security update: man-in-the-middle arbitrary c... by moebrowne on Wednesday November 04, 2026 @12:22PM (#50368673)
Same. It's faster and feels respectful to not keeping hitting freely provided repos for the same packages over and over. Someone has to be paying for the bandwidth.
Re:Debian apt security update: man-in-the-middle arbitrary c... by krautsauer on Wednesday November 04, 2026 @07:26PM (#50373374)
Thinking about it, that's not a good argument for http being the default. If you're seeding VMs, you're already in control of the config. Using a dedicated repository proxy (apt-cacher-ng? sonatype nexus? pulp? something?) might even perform better than a generic caching proxy.
Re:Debian apt security update: man-in-the-middle arbitrary c... by tremon on Friday November 06, 2026 @05:57AM (#50390796)
Yes, I use acng. I still consider it a caching proxy, even if it's an application-specific one.
Re:Debian apt security update: man-in-the-middle arbitrary c... by elboulangero on Wednesday November 04, 2026 @11:42AM (#50368170)
Developers
Re:Debian apt security update: man-in-the-middle arbitrary c... by Avamander on Wednesday November 04, 2026 @01:41PM (#50369759)
So a minuscule part of the install base that can absolutely alter system configuration to use a local mirror.

Not something that should be the default, exposing everyone to the dangers.

Re:Debian apt security update: man-in-the-middle arbitrary c... by basilikum on Wednesday November 04, 2026 @08:52AM (#50365526)
It's not the default, but you can install apt-transport-https and then just change the update URLs to https assuming your mirror supports that.
Re:Debian apt security update: man-in-the-middle arbitrary c... by sczi on Wednesday November 04, 2026 @10:16AM (#50366777)
you can just change the urls to https, apt-transport-https isn't needed anymore, it's builtin to apt now.
Re:Debian apt security update: man-in-the-middle arbitrary c... by MiscIdeaMaker99 on Wednesday November 04, 2026 @09:08AM (#50365738)
I would speculate that it's inertia due to decisions made a decade or two ago, before we decided that everything should run via HTTPS.
Re:Debian apt security update: man-in-the-middle arbitrary c... by lousken on Wednesday November 04, 2026 @05:10PM (#50372233)
you can inspect the traffic even without ssl inspection
Re:Debian apt security update: man-in-the-middle arbitrary c... by flotzam on Wednesday November 04, 2026 @08:30AM (#50365263)
Would it have killed them to give even a little bit of guidance how to securely update the apt package(s)?

If necessary, with instructions for downloading and verifying it out of band

Or maybe by passing a parameter to an old apt version that disables the vulnerable HTTP download resumption when downloading the new apt

Re:Debian apt security update: man-in-the-middle arbitrary c... by TZubiri on Wednesday November 04, 2026 @08:34AM (#50365315)
Use https?
Re:Debian apt security update: man-in-the-middle arbitrary c... by flotzam on Wednesday November 04, 2026 @08:38AM (#50365359)
Still requires trusting the server(s). But yes, they should have mentioned at least that
Re:Debian apt security update: man-in-the-middle arbitrary c... by flotzam on Wednesday November 04, 2026 @03:41PM (#50371202)

  apt -o Acquire::Retries=0 update &&
  apt -o Acquire::Retries=0 upgrade
Re:Debian apt security update: man-in-the-middle arbitrary c... by InsidiousWombat on Wednesday November 04, 2026 @08:30AM (#50365267)
interesting, why is verification not running after package is already on hard drive in full ?
Re:Debian apt security update: man-in-the-middle arbitrary c... by Karliss on Wednesday November 04, 2026 @08:54AM (#50365547)
This is my best guess on what's happening based on the limited information linked.

1) Apt downloads first package (unmodified)

2) apt checks signature -> signature checked and remembered as valid

3) apt downloads second package, http redirect to the same url as package 1

4) the second package overwrite first one due to sharing URL. The temporary storage name or download cache key is derived from URL.

5) signature for package 2 fails but first one (already overwritten by bad one) is still considered good

6) Package 1 gets executed because the signature check already passed in step 2

Note sure where exactly resuming an HTTP download fits in. Maybe step 4 also requires pausing and resuming the update process. Which could involve some state serialization/deserialization vulnerable to conflicting URL confusion.

Re:Debian apt security update: man-in-the-middle arbitrary c... by justinsaccount on Wednesday November 04, 2026 @08:56AM (#50365565)
based only on the wording in the notice:

> APT can merge two different package downloads after an HTTP redirect gives them the same URI

It sounds like the verification is ran but there is some deduplication or caching involved keyed on the destination of the url redirect, not the original source.

So could imagine a malicious server that:

Responds for a request for foo.deb with a redirect to evil.deb containing the original foo.deb. This validates properly.

Responds with a second request for bar.deb with a redirect again to evil.deb that now returns a malicious package. The downloading code thinks it has already validated evil.deb

Re:Debian apt security update: man-in-the-middle arbitrary c... by hypfer on Wednesday November 04, 2026 @08:49AM (#50365484)
If I understand correctly, trixie-security contains a fixed version, however, bookworm not (yet)?

Is it going to be fixed for oldstable?

Re:Debian apt security update: man-in-the-middle arbitrary c... by basilikum on Wednesday November 04, 2026 @08:50AM (#50365492)
Re:Debian apt security update: man-in-the-middle arbitrary c... by iamnothere on Wednesday November 04, 2026 @08:57AM (#50365576)
Bonus, the man in the middle can see what packages you’re downloading since you’re not using HTTPS, so they know if you’re vulnerable during an update.

I never understood the insistence on using HTTP as a default for apt. Once HTTPS transport was available and tested (which took forever btw) then it should have become the default. Maybe this will spur some changes.

Re:Debian apt security update: man-in-the-middle arbitrary c... by ducktective on Wednesday November 04, 2026 @09:06AM (#50365697)
How to cache with HTTPS?
Re:Debian apt security update: man-in-the-middle arbitrary c... by iamnothere on Wednesday November 04, 2026 @09:09AM (#50365754)
SSL bumping
Re:Debian apt security update: man-in-the-middle arbitrary c... by Avamander on Wednesday November 04, 2026 @09:12AM (#50365794)
If your scale actually makes caching worth it you can run a local HTTPS mirror. If you don't control the endpoints to do that, you don't get to MiTM anything.
Re:Debian apt security update: man-in-the-middle arbitrary c... by sznio on Wednesday November 04, 2026 @09:15AM (#50365845)
give the cache server a certificate?
Re:Debian apt security update: man-in-the-middle arbitrary c... by cbluth on Wednesday November 04, 2026 @09:55AM (#50366401)
Re:Debian apt security update: man-in-the-middle arbitrary c... by yread on Wednesday November 04, 2026 @03:44PM (#50371239)
how do you apt install ca-certificates
Re:Debian apt security update: man-in-the-middle arbitrary c... by doublepg23 on Wednesday November 04, 2026 @04:50PM (#50372053)
wouldn't it come with your install?
Re:Debian apt security update: man-in-the-middle arbitrary c... by Avamander on Wednesday November 04, 2026 @09:07AM (#50365718)
Not surprised at all. I remember all of the heated discussions (even here on HN) around there being absolutely no need for HTTPS because "everything is signed with PGP".

Hopefully this example settles at least some of this pointless discussion.

Re:Debian apt security update: man-in-the-middle arbitrary c... by bulbar on Wednesday November 04, 2026 @11:35AM (#50368065)
That's exactly why layered security is a thing since ever. Weird that some argued that a singular layer is sufficient.
Re:Debian apt security update: man-in-the-middle arbitrary c... by b112 on Thursday November 05, 2026 @02:40AM (#50376285)
Does it?

Let's compare the extremely, extremely rare edge case of this with signed packages via Debian's keyring on the local box, vs all the bugs and issues with any code in the SSL layer. And of course, that the people most able to MITM, which are often 'state actors', likely have root certs by various means regardless.

I would be astonished if for example the NSA hadn't obtained the capacity to generate certs for MITM at the drop of a hat.

And regardless, without certificate pinning, MITM is a thing with SSL anyhow. There have been quite a few sketchy SSL providers over the years, there was a deep post about how hard Mozilla works, for all their other foibles, in trying to keep bad actors out of their accepted list.

Point is, SSL isn't actually that secure, has its own layers of bugs and issues, not enough people certificate pin, and so on.

Re:Debian apt security update: man-in-the-middle arbitrary c... by Avamander on Friday November 06, 2026 @07:24AM (#50391527)
> Does it?

It clearly doesn't. I guess we'll wait for the next RCE to learn our lesson.

> [...] vs all the bugs and issues with any code in the SSL layer.

You keep calling it SSL, that already makes me suspect that you have a few outdated preconceptions. Today you can use a formally proven TLS implementation, if you're so inclined. Formally proven APT? Will never happen.

If TLS is used, it significantly reduces the surface area exposed to anyone who can access or tamper with the traffic. None of the code that literally made an RCE possible would be accessible in the vast majority of cases.

Imagine if we would have had TLS used with APT everywhere right now, the threat would have been "if NSA MiTMs you with the certificates they can generate". Drastic difference in terms of scale, sophistication and likelyhood of it happening.

Re:Debian apt security update: man-in-the-middle arbitrary c... by londons_explore on Wednesday November 04, 2026 @09:16AM (#50365861)
And APT was the one being very reluctant about using HTTPS because "we sign out stuff so don't need encryption".

I think this demonstrates exactly why everything should be https.

Re:Debian apt security update: man-in-the-middle arbitrary c... by teddyh on Wednesday November 04, 2026 @09:20AM (#50365911)
HTTPS will not protect you from a bad/compromised mirror.
Re:Debian apt security update: man-in-the-middle arbitrary c... by Avamander on Wednesday November 04, 2026 @09:22AM (#50365933)
A bad mirror is much less likely than someone MiTMing, at least for most machines.
Re:Debian apt security update: man-in-the-middle arbitrary c... by TacticalCoder on Wednesday November 04, 2026 @11:52AM (#50368313)
Wait: Debian packages are signed.

A compromised mirror cannot serve packages that aren't properly signed.

This attack used an HTTP redirect to serve a backdoored package after the signature has been verified. I'm not sure that HTTP redirect attack would work with an HTTPS repository!?

Re:Debian apt security update: man-in-the-middle arbitrary c... by leni536 on Wednesday November 04, 2026 @12:13PM (#50368576)
Why wouldn't it work on a compromised mirror? HTTPS servers can still do redirects.
Re:Debian apt security update: man-in-the-middle arbitrary c... by edelbitter on Wednesday November 04, 2026 @11:27AM (#50367929)
[delayed]
Re:Debian apt security update: man-in-the-middle arbitrary c... by elboulangero on Wednesday November 04, 2026 @11:52PM (#50375344)
> there is still no obvious need for it

There's need if your apt client hits a redirector that redirects to a mirror close-by. That's the default for Kali Linux, so it's very much needed.

This being said Debian's default deb.debian.org is a CDN, so maybe disabling redirects by default in Debian, and letting downstream distros enable if if needed, might be a good idea.

However when you change a long-standing setting like that, hard to know in advance what will break...

And as others noted, mirror sysadmins might use redirects in their webserver config. So if you disable the setting, users that hit a mirror might face apt errors, that can be a lot of users impacted.

Re:Debian apt security update: man-in-the-middle arbitrary c... by edelbitter on Thursday November 05, 2026 @03:45PM (#50384248)
I found the /etc/apt/sources.list.d/lexicographic-order.list to /etc/apt/sources.list.d/lexicographic-order.sources (Debian RFC822 control data format) migration well-planned: the old format will not stop working before 2029, just newly installed or upgraded systems will not default to it any more. Unless an admin specifically deployed no longer compatible files to a newer release, without even checking how the folder looks there, this slow changeover won't break much. Which is the sort of planning I value Debian for, and hope for whatever cleanup the mirrorlist plus http-redirect bit eventually gets. (There is additionally the somewhat related pdiffs feature, which could suffer from the same category of time-of-check/time-of-use bugs - but that one already is configurable per-repository and less seriously harmful if disabled on a supporting source.)
Re:Debian apt security update: man-in-the-middle arbitrary c... by _msw_ on Thursday November 05, 2026 @02:41PM (#50383466)