Repository navigation
CVE-2026-109518 в apt: установщик AmneziaWG закрывает дыру на время установки (v6.2.1) / CVE-2026-109518 in apt: the AmneziaWG installer closes the hole during the install (v6.2.1) #385
bivlked
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
English version below
Вышел v6.2.1 установщика AmneziaWG. Главное в нём - защита от уязвимости apt CVE-2026-109518 на время установки.
Что за уязвимость
Тот, кто может подменить HTTP-трафик между сервером и зеркалом пакетов (например, злонамеренное зеркало или прокси), может подсунуть apt неподписанный пакет, и тот выполнится с правами root. Срабатывает это только тогда, когда apt повторяет скачивание пакета, а по умолчанию он делает до трёх повторов. Исправленный apt уже есть, но на свежем сервере из образа хостера стоит старый, и именно он качает пакеты во время установки.
Что делает v6.2.1
На время каждого запуска, включая продолжение после перезагрузки, установщик выключает в apt повторы скачивания, а при выходе убирает эту свою настройку. Если повторы включены где-то ещё в настройках apt, он об этом предупредит. Цена одна: при сбое сети apt сам скачивание не повторит. Если не скачается обязательный пакет, установка остановится с ошибкой, а повторный запуск продолжит с того же шага.
Если сервер уже стоит
Обновите apt, тоже без повторов:
sudo apt-get -o Acquire::Retries=0 update && sudo apt-get -o Acquire::Retries=0 install --only-upgrade aptЧто ещё
--protocol=2.0.HeaderProtectionKeyиз base64 в hex. С таким ключом gluetun подключился к серверу 3.1. Проверил это @ementat в D#380, спасибо.Все изменения: v6.2.1.
v6.2.1 of the AmneziaWG installer is out. The main thing in it is protection against the apt vulnerability CVE-2026-109518 during the install.
The vulnerability
Anyone who can tamper with the HTTP traffic between the server and the package mirror (a malicious mirror or proxy, for example) can slip apt an unsigned package, and it runs as root. It only works when apt retries a package download, and by default apt retries up to three times. A fixed apt is out, but a fresh server from a provider image has the old one, and that is the apt that downloads packages during the install.
What v6.2.1 does
For the length of every run, a resume after a reboot included, the installer switches apt download retries off, and removes that setting of its own on exit. If retries are on somewhere else in the apt settings, it warns you. The one cost: on a network glitch apt will not retry a download by itself. If a required package fails to download, the install stops with an error, and running it again resumes at the same step.
If your server is already installed
Upgrade apt, also without retries:
sudo apt-get -o Acquire::Retries=0 update && sudo apt-get -o Acquire::Retries=0 install --only-upgrade aptAlso
--protocol=2.0server.HeaderProtectionKeyfrom base64 to hex. With the converted key gluetun connected to a 3.1 server. @ementat tested it in D#380, thanks.All changes: v6.2.1.
All reactions