{"id":3976,"date":"2026-11-04T17:27:04","date_gmt":"2026-11-04T17:27:04","guid":{"rendered":"https:\/\/thedigitalfortress.us\/?p=3976"},"modified":"2026-11-04T17:27:04","modified_gmt":"2026-11-04T17:27:04","slug":"debian-and-ubuntu-apt-flaw-lets-mitm-attackers-swap-verified-packages-and-run-code-as-root","status":"publish","type":"post","link":"https:\/\/thedigitalfortress.us\/?p=3976","title":{"rendered":"Debian and Ubuntu APT Flaw Lets MitM Attackers Swap Verified Packages and Run Code as Root"},"content":{"rendered":"<div>\n<p><span class=\"p-author\"><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Swati Khandelwal<\/span><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Nov 04, 2026<\/span><\/span><span class=\"p-tags\">Linux \/ Vulnerability<\/span><\/p>\n<\/div>\n<div id=\"articlebody\">\n<div class=\"separator\" style=\"clear: both;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgUPaNgRQEg3TU6-9BBgKse77CGVpbBFbn48cBnN1aanKvaMzk_mT74RxyWZA3_NbcrYe0UnRAQlELRYKGiGNrLUDcBMSKXFgRNxaND7RoaVFOs1Q7rkFFtlpoAzYQ7C8i6RAY4bNNTarEMUI-iFR4A_IfjIkFE9vpyQjG-0QFngy5cRE8f2GhGfTltkaI\/s1700-nu-rw-lo-l85-e365\/linux-apt.jpg\" style=\"display: block;  text-align: center; clear: left; float: left;\"><\/a><\/div>\n<p>A flaw in <strong>APT<\/strong>, the package manager for Debian and Ubuntu, allows an attacker who can modify package downloads to swap a checked package for their own.<\/p>\n<p>The attacker&#8217;s code then runs as root, according to advisories that <a href=\"https:\/\/lists.debian.org\/debian-security-announce\/2026\/msg00526.html\" target=\"_blank\">Debian<\/a>, <a href=\"https:\/\/ubuntu.com\/security\/CVE-2026-109518\" target=\"_blank\">Ubuntu<\/a>, and <a href=\"https:\/\/lists.debian.org\/deity\/2026\/11\/msg00005.html\" target=\"_blank\">APT&#8217;s developers<\/a> published on November 4. The attack needs APT to retry failed downloads, which it does by default from Debian 12 and Ubuntu 22.04 onward.<\/p>\n<p>Debian has released fixed versions of APT for the flaw, <b>CVE-2026-109518<\/b>. APT&#8217;s developers, who call the flaw critical, say updates for Ubuntu and its Ubuntu Pro subscription service are being released. Ubuntu 14.04 users with Ubuntu Pro can already get one.<\/p>\n<p>Older releases, such as Debian 11 and Ubuntu 20.04, are not exposed by default, according to Ubuntu. But many user scripts may have turned on the retry setting, Acquire::Retries, on those releases anyway, APT&#8217;s developers say.<\/p>\n<p>Debian&#8217;s testing branch was still on the <a href=\"https:\/\/security-tracker.debian.org\/tracker\/CVE-2026-109518\" target=\"_blank\">vulnerable version 3.3.5<\/a> at 14:58 UTC on November 4. For Debian 11, whose <a href=\"https:\/\/www.debian.org\/releases\/bullseye\/\" target=\"_blank\">Debian long-term support ended on August 31<\/a>, APT&#8217;s developers have published a fixed version, 2.2.5.<\/p>\n<div class=\"dog_two clear\">\n<div class=\"cf\"><a href=\"https:\/\/thehackernews.uk\/network-defense-dd\" rel=\"nofollow noopener sponsored\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEiWypk5aSrjVVXdRpyJaxKDe9VERLYId6cVdoZUwHGSe-EMh90qROsc-jk3uEKqB8-L4eSpBaka7err1zF86IrsEA4S2IZ8yyEsoZTsiGq2YvGuaCtdFvE8-ej7uEBhLbYJNENjs9umU6qmZCJ1aAzvG-ZDO0NtTVddy5hIGv4FBpDJp8UeOxYEzF5AeuK1\/s728-nu-rw-lo-l85-e36\/core-d.png\" width=\"729\" height=\"91\"\/><\/a><\/div>\n<\/div>\n<p>Ubuntu rates the flaw as high priority, with a CVSS 4.0 score of 7.7, and says that distributions built on Debian and Ubuntu are affected as well, without naming any.<\/p>\n<p><a name=\"more\"\/><\/p>\n<p>Ubuntu published new APT builds for four of its releases to its <a href=\"https:\/\/launchpad.net\/ubuntu\/+source\/apt\" target=\"_blank\">security archive<\/a> at 14:25 UTC on November 4:<\/p>\n<ul>\n<li>Ubuntu 26.10: 3.3.3ubuntu0.1<\/li>\n<li>Ubuntu 26.04 LTS: 3.2.1ubuntu0.1<\/li>\n<li>Ubuntu 24.04 LTS: 2.8.4ubuntu0.1<\/li>\n<li>Ubuntu 22.04 LTS: 2.4.15ubuntu0.1<\/li>\n<\/ul>\n<p>At 15:46 UTC, Ubuntu still marked all eight releases it tracks for the flaw, from 14.04 LTS to 26.10, as vulnerable.<\/p>\n<p>The attacker can be anyone who can change the HTTP traffic between APT and the package server, including a malicious mirror or proxy, according to Ubuntu. The attack runs when the computer installs a package. The attacker uses HTTP redirects and ordinary temporary server errors to make APT retry the download, APT&#8217;s developers say.<\/p>\n<p>Max Justicz reported the flaw. None of the three advisory reports describe attacks exploiting the flaw or offer a workaround for systems that cannot update yet. They describe the attack over HTTP and do not say whether package sources reached over HTTPS are exposed.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ue804Swati Khandelwal\ue802Nov 04, 2026Linux \/ Vulnerability A flaw in APT, the package manager for Debian and Ubuntu, allows an attacker who can modify package downloads to swap a checked package&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3977,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1528,622,10,4052,70,332,4053,35,61,1774,2262,729,2406],"class_list":["post-3976","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-apt","tag-attackers","tag-code","tag-debian","tag-flaw","tag-lets","tag-mitm","tag-packages","tag-root","tag-run","tag-swap","tag-ubuntu","tag-verified"],"_links":{"self":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts\/3976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3976"}],"version-history":[{"count":0,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts\/3976\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/media\/3977"}],"wp:attachment":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}