APT Retry Flaw Lets On-Path Attackers Swap Authenticated Packages
Moyen · The Hacker News ·
En bref
- APT's built-in retry after a failed download can be abused by an on-path attacker.
- The result is replacement of a package that had passed verification, with code executing as root.
- Releases from Debian 12 onward use the affected default behavior.
- No CVE was assigned; Debian, Ubuntu, and APT maintainers published advisories on 4 November.
- Severity is medium, but root-level impact makes prompt patching and network hardening important.
On 4 November, Debian, Ubuntu, and the APT maintainers issued advisories about a weakness in how APT handles a retry after a download fails. A man-in-the-middle adversary who can observe or alter traffic can abuse that retry path to replace a package that the system had already authenticated. The replacement then executes with root privileges.
APT is the package manager used on Debian and Ubuntu systems. The problem involves the stock retry behavior, and releases from Debian 12 onward are affected. No CVE identifier was assigned, so organizations that track only CVE feeds may not see this issue in their normal vulnerability workflow.
The attack is not a generic remote exploit; it depends on an adversary holding a position on the network path. That requirement limits exposure, but the consequence is severe because package management runs with high trust and root-level rights. A brief download error can become a privileged compromise if retries are manipulated.
Retries exist to make package installation resilient, but the interaction between retry logic and package verification is the concern here. The published advisories are the primary source of vendor-specific details and should be reviewed against each managed distribution. Administrators should also watch for repeated failed downloads followed by unexpected package changes.
Until fixes are available and deployed, reducing on-path exposure and tightening monitoring matter most. Watch vendor repositories for updated APT packages, and treat anomalous retry patterns or unexplained root-installed software as potential indicators. Because no CVE was issued, manual advisory tracking is necessary.
À faire maintenant
- Apply updated APT packages from Debian and Ubuntu as soon as vendor repositories publish them, prioritizing Debian 12 and newer hosts that use default retry settings.
- Review APT retry configuration and reduce automatic retries where operationally feasible until patched, testing changes in a staging environment first.
- Enforce HTTPS/TLS for APT repositories, verify mirror configurations, and remove plain HTTP sources where possible.
- Add network controls or authenticated proxies that make on-path interception harder, especially for endpoints reaching external mirrors.
- Monitor APT logs for failed downloads immediately followed by successful installation of changed package versions, and alert on unexpected root-installed software.
- Validate package provenance using signed repository metadata and compare package hashes against vendor sources before broad rollout.
- Inventory Debian and Ubuntu endpoints and track vendor advisories manually because no CVE was assigned.
Source originale
Analyse originale assistée par IA, sources citées. Vérifiez auprès de l'avis du fournisseur avant d'agir.