Skip to content
KitploitKITPLOIT
StrumentiExploitsBlog
Log in
Invia
StrumentiExploitsBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

FeedContattoPrivacy© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
cve-2026-109518-audit — Read-only audit for CVE-2026-109518: APT HTTP backend hard-link reuse lets an on-path attacker swap a verified package (Debian/Ubuntu) | Kitploit
Strumenti/GitHubGitHub/quaerendir/cve-2026-109518-audit
Defensive ToolsVulnerability AnalysisScripting & AutomationConfiguration AuditingMisconfigurationIncident Response
GitHubquaerendir/cve-2026-109518-audit

cve-2026-109518-audit

Read-only audit for CVE-2026-109518: APT HTTP backend hard-link reuse lets an on-path attacker swap a verified package (Debian/Ubuntu)

Vedi Repository
7 giorni faNon ancora revisionato
Condividi
Contenuto non disponibile nella lingua richiesta. Visualizzazione della versione inglese.

cve-2026-109518-audit

CVE Class CVSS Disclosed Shell License Version

Read-only audit script for CVE-2026-109518, a flaw in the HTTP backend of APT (Debian, Ubuntu and derivatives). An attacker who can alter the HTTP traffic between a client and its archive server can get an unverified, attacker-controlled .deb installed, and package scripts run as root.

TL;DR

APT can merge two different downloads when a redirect gives them the same address (it reuses a hard link, CWE-62). If a download is retried, the data of a second, attacker-influenced transfer can end up in the file that already passed signature verification. Maintainer scripts then run as root.

CVECVE-2026-109518
ComponentAPT, HTTP method (every APT frontend is affected: apt, apt-get, aptitude, unattended-upgrades)
ClassUNIX hard link reuse (CWE-62), verified package swapped after verification
SeverityCVSS 4.0: 7.7 High (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H), Ubuntu priority High
NeedsOn-path attacker on plain HTTP, redirects followed, and a non-zero Acquire::Retries
Not affectedSnaps, non-HTTP transports (FTP)
UbuntuUSN-8996-1: 26.10 3.3.3ubuntu0.1, 26.04 3.2.1ubuntu0.1, 24.04 2.8.4ubuntu0.1, 22.04 2.4.15ubuntu0.1; ESM 20.04 2.0.12+esm1, 18.04 1.6.19+esm1; Legacy 16.04 1.2.36+esm1, 14.04 1.0.1ubuntu2.24+esm4
Debiantrixie 3.0.4 (DSA-6607-1), bookworm 2.6.2 (DLA-4880-1), sid 3.3.6; bullseye not listed
Upstream3.3.6

The default Acquire::Retries is 3 on Debian 12 / Ubuntu 22.04 and newer, which makes them affected out of the box. Older releases default to 0 and are only exposed when someone set a non-zero value. The default Ubuntu and Debian mirrors are plain HTTP, so most hosts meet all three conditions until patched.

Fix versions were taken from ubuntu.com/security/CVE-2026-109518, the Ubuntu blog post and security-tracker.debian.org on 2026-11-04. Vendors published no indicators of compromise, so this script does not hunt for any.

What this script does

It only reports. It never installs, edits configuration or opens a network connection, and needs no root.

  • Reads the installed apt version and the distro from os-release, and compares them with the vendor fix using a pure-bash port of the dpkg version rules.
  • Reads the effective Acquire::Retries. apt-config dump hides built-in defaults, so an unset value is inferred (non-zero from apt 2.4).
  • Lists the enabled sources by scheme through apt-get indextargets (so Enabled: no stanzas do not count), falling back to parsing sources.list and *.sources. mirror+... sources count as HTTP because the mirror list may point to HTTP mirrors.
  • Notes when TLS verification is disabled (Verify-Peer / Verify-Host set to false): https sources then count as exposed too.
  • Reads the local package lists to tell you whether the fix is already installable, and how old the lists are.
  • Prints the exact commands to fix it. They are printed, not run.

Verdicts

VerdictExitMeaning
PATCHED0installed apt is at or above the fix
NOT_APPLICABLE0apt is not installed (RPM hosts, Solaris, Windows)
MITIGATED1apt is unfixed, but Acquire::Retries is 0 or no enabled source is open to a network attacker. Still patch
VULNERABLE2unfixed apt, retries enabled, at least one plain-HTTP source
UNKNOWN3no fix known for this release, or a derivative that may carry a backport
ERROR4bad usage

Usage

./cve-2026-109518-audit.sh            # text report
./cve-2026-109518-audit.sh --json     # JSON
./cve-2026-109518-audit.sh --quiet    # one line

Fixing a host

Run the update with retries off, because apt update and apt install use the vulnerable path themselves:

sudo apt-get update -o Acquire::Retries=0
sudo apt-get install -o Acquire::Retries=0 --only-upgrade apt

Until then, echo 'Acquire::Retries "0";' | sudo tee /etc/apt/apt.conf.d/99-cve-2026-109518 closes the retry path. Switching the archive URLs to https:// also stops an on-path attacker, but some community mirrors do not offer HTTPS. No reboot is needed.

If the audit says the fix is not in your lists yet, run apt-get update first. If it still offers nothing, the vendor has not published the fix for your suite, or your mirror lags.

Several hosts at once

tools/fleet.sh web1 db1 pve1 pve2     # Linux, macOS, WSL, Git Bash
.\tools\fleet.ps1 web1 db1 pve1 pve2    # Windows PowerShell 5.1 / 7

The audit is streamed to bash -s over SSH, so nothing is left on the remote host. A pause between hosts (-d / -DelaySeconds, default 2 s) keeps shared hosts that rate-limit SSH logins from blocking you.

Derivatives and edge cases

  • Ubuntu-based (Mint, Pop!_OS, elementary): judged against the Ubuntu row for their UBUNTU_CODENAME.
  • Proxmox: ID=debian, so the Debian rows apply.
  • Other Debian derivatives (Kali, Devuan, ...): judged against upstream 3.3.6. Below it the verdict is UNKNOWN, since a vendor backport has a lower version number that the script cannot recognise.
  • Containers: the script audits the apt of the system it runs in. Docker images that run apt-get during a build carry their own apt and are not covered, so rebuild them after the base images are fixed.
  • Fix table freshness: the table is a snapshot (2026-11-04). The report warns once it is 14 days old; pull the latest release of the script.

Tests

bash tests/run_tests.sh

Each case runs the script against mocked dpkg-query, apt-config, apt-get, apt-cache and a fixture file tree. The version comparison is cross-checked against the real dpkg when it is available.

License

MIT, see LICENSE.

Scarica lo strumento

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 Il toolkit OSINT definitivo: grafo di indagine, punteggio di affidabilità, famiglie di alias, mappa, timeline e report. 49 moduli, oltre 400 siti, nessuna chiave API richiesta.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # App di esecuzione con un tocco GhostLock (CVE-2026-43499)

    806
  • 3

    wifit3

    derv82/wifit3

    Wifite ma solo USB e multipiattaforma.

    635
  • 4

    looking-glass

    anonghosty/looking-glass

    Piattaforma CSIRT che importa i report di Shadowserver in MongoDB e li riproduce come mappe interattive, analisi, risultati, avvisi e dashboard executive.

    454
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer è una piattaforma open-source di gestione degli accessi privilegiati (PAM) che fornisce ai team DevOps e IT un accesso sicuro e on-demand a endpoint SSH, RDP, Kubernetes, database e RemoteApp tramite un browser web.

    434
  • 6

    SafeLine

    chaitin/safeline

    WAF self-hosted e reverse proxy che filtra il traffico HTTP malevolo, blocca SQL injection, XSS e attacchi bot, con limitazione del tasso e crittografia dinamica HTML/JS.

    384

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →