CVE-2026-109518

APT RCE via hard link reuse

Published Nov 4, 2026 CVSS 4.0 · 7.7 High EPSS 1.2% KEV · Not listed
Description
On Debian, Ubuntu, and derivative Linux distributions, an on-path attacker who can manipulate the HTTP traffic (including a malicious mirror or proxy) between an APT client and an archive server triggered by a package install can trick the client into installing an attacker-controlled unverified package and achieve remote code execution with root privileges.



The vulnerability is caused by the reuse of hard links and requires the client to follow redirects and retry the download of package files. It requires the client to have a non-zero Acquire::Retries configuration setting; the value 3 is the default starting with Debian 12 (bookworm) and Ubuntu 22.04 LTS (Jammy Jellyfish), so older releases are unaffected in a default configuration

Analysis

AI-generated

Technical impact

The vulnerability allows an on‑path attacker who can interpose in HTTP traffic between an APT client and its archive server to force the client to install an attacker‑controlled, unverified package, which in turn grants remote code execution with root privileges. It is triggered by the reuse of hard links during package downloads, a classic race‑condition flaw (CWE‑367) that enables arbitrary file content replacement, and also involves improper handling of input that can be modelled as an injection weakness (CWE‑62) and improper file handling (CWE‑494). The flaw requires the client to follow redirects and retry the download of package files. This flaw is only exploitable when the client’s Acquire::Retries configuration is non‑zero, which is the default (value 3) for Debian 12 (bookworm) and Ubuntu 22.04 LTS (Jammy Jellyfish); earlier releases are unaffected by the default configuration.

Affected Systems

Affected products are the APT client component in Debian and Ubuntu Linux distributions. The default configuration that makes the flaw exploitable applies to Debian 12 and newer releases, as well as Ubuntu 22.04 LTS and newer. No specific package or version numbers are listed, but the vulnerability affects any installation that uses the default Acquire::Retries setting of 3.

Risk and Exploitability

The CVSS score of 7.7 categorises the flaw as high severity. The EPSS score is 0.00928 (about 0.9%), and the vulnerability is not listed in CISA’s KEV catalog, so the likelihood of a widespread exploitation is uncertain, though the ability to gain root privileges is a critical impact. An attacker needs to control the network path between the APT client and its archive server (for example, by running a malicious mirror or proxy) and the APT client must be configured to retry downloads. Because the vulnerability relies on hard‑link reuse, typical mitigations like disabling redirection retries or ensuring that only trusted mirrors are used can reduce the attack surface.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest security update for APT released by Debian and Ubuntu that addresses the hard‑link reuse issue.
  • Reduce or disable retry logic by setting Acquire::Retries to 0 in the APT configuration (e.g., in /etc/apt/apt.conf.d/99disable-retries).
  • Ensure that APT uses only verified mirrors and enforce strict package signature validation to prevent the installation of untrusted packages.

Generated by OpenCVE AI on November 6, 2026 at 15:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4880-1 apt security update
History
Type Values Removed Values Added
First Time appeared Debian
Debian apt
Ubuntu
Ubuntu apt
Vendors & Products Debian
Debian apt
Ubuntu
Ubuntu apt
Type Values Removed Values Added
Weaknesses CWE-494
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description On Debian, Ubuntu, and derivative Linux distributions, an on-path attacker who can manipulate the HTTP traffic (including a malicious mirror or proxy) between an APT client and an archive server triggered by a package install can trick the client into installing an attacker-controlled unverified package and achieve remote code execution with root privileges. The vulnerability is caused by the reuse of hard links and requires the client to follow redirects and retry the download of package files. It requires the client to have a non-zero Acquire::Retries configuration setting; the value 3 is the default starting with Debian 12 (bookworm) and Ubuntu 22.04 LTS (Jammy Jellyfish), so older releases are unaffected in a default configuration
Title APT RCE via hard link reuse
Weaknesses CWE-367
CWE-62
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

  • CWE-494

    Download of Code Without Integrity Check

  • CWE-62

    UNIX Hard Link

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Nov 5, 2026, 4:56 AM
Reserved
Oct 12, 2026, 6:44 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 4:17 PM
Modified
Nov 12, 2026, 8:04 PM
Severity
Important
Public date
Nov 4, 2026, 3:49 PM