Skip to content
KitploitKITPLOIT
أدواتعمليات الاستغلالالمدونة
Log in
إرسال
أدواتعمليات الاستغلالالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

الخلاصاتاتصالالخصوصية© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
أدوات/GitHubGitHub/jordanhardee/cve-2026-109518-apt-patch-proxmox-and-generic
Defensive ToolsVulnerability AnalysisScripting & AutomationConfiguration AuditingSecurity VirtualizationSupply Chain SecurityMisconfigurationIncident Response
مشاركة
GitHubjordanhardee/cve-2026-109518-apt-patch-proxmox-and-generic

cve-2026-109518-apt-patch-proxmox-and-generic

Shell scripts that audit, mitigate, patch and verify CVE-2026-109518 in APT on Debian/Ubuntu systems, including Proxmox VE hosts, LXC containers and VMs, with tamper checks.

عرض المستودع
2منذ 18 أياملم تتم المراجعة بعد
المحتوى غير متوفر باللغة المطلوبة. عرض النسخة الإنجليزية.

cve-2026-109518-apt-patch-proxmox-and-generic

Silly little patch for cve-2026-109518 for Proxmox and apt. Happily fixed now but could be of use. This is how I fixed it while a longer fix was being developer. Tested to work and vibe coded with Claude Opus # CVE-2026-109518 APT patch & audit scripts

Pre-release. Tested on real Ubuntu systems and in simulated Proxmox environments (details below), but not yet on a real Proxmox host with real Debian guests. Run --audit first, then patch one container and one VM before your whole fleet.

Shell scripts that find, mitigate, patch and verify CVE-2026-109518 on Debian, Ubuntu and their derivatives, either on one machine or across a whole Proxmox VE host (the host, every LXC container and every VM) in one run. They also check whether a system may already have been compromised through the bug.

ScriptUse it for
cve-2026-109518-apt-fix-proxmox.shA Proxmox VE host: the host itself, all running containers (pct exec) and all running VMs with the QEMU guest agent (qm guest exec). No SSH needed.
cve-2026-109518-local.shAny single Linux machine: bare metal, VM, container, cloud instance. Proxmox not required.

Both scripts run the same check logic: the Proxmox script embeds cve-2026-109518-local.sh byte for byte.

The vulnerability in brief

CVE-2026-109518 is a flaw in APT, the package manager of Debian, Ubuntu and derivatives, disclosed on 4 November 2026 and credited to Max Justicz. An attacker who can tamper with plain-HTTP package downloads (a malicious mirror, proxy, Wi-Fi network or Tor exit node) can get a package that failed signature verification installed, which means code execution as root.

Exploitation requires that:

  • packages are downloaded over HTTP (HTTPS and FTP mirrors are not affected), and
  • APT retries failed downloads (Acquire::Retries > 0). The default is 3 from Debian 12 and Ubuntu 22.04 LTS onward, so those releases are exposed out of the box. Older releases default to 0.

Setting Acquire::Retries "0" makes the bug unexploitable, which is what lets these scripts download the fix safely even over an untrusted network.

Fixed versions (from the Debian and Ubuntu advisories)

ReleaseFixed apt version
Debian 11 bullseye2.2.5
Debian 12 bookworm (DLA-4880-1)2.6.2
Debian 13 trixie (DSA-6607-1)3.0.4
Debian unstable3.3.6 (testing/forky: no fix yet at disclosure)
Ubuntu 22.04 LTS2.4.15ubuntu0.1
Ubuntu 24.04 LTS2.8.4ubuntu0.1
Ubuntu 26.04 LTS3.2.1ubuntu0.1
Ubuntu 26.103.3.3ubuntu0.1
Ubuntu 14.04 / 16.04 / 18.04 / 20.04 (ESM, Ubuntu Pro)1.0.1ubuntu2.24+esm4 / 1.2.36+esm1 / 1.6.19+esm1 / 2.0.12+esm1

Always confirm against your distribution's own advisory (Ubuntu: USN-8996-1).

Quick start

Proxmox VE host (as root)

# 1. Audit everything. Read-only: changes nothing on any system.
sh cve-2026-109518-apt-fix-proxmox.sh --audit

# 2. Patch everything, then audit again to confirm.
sh cve-2026-109518-apt-fix-proxmox.sh && sh cve-2026-109518-apt-fix-proxmox.sh --audit

# 3. Read the full report.
less -S "$(ls -t /root/cve-2026-109518-*-report.txt | head -1)"

Run it inside tmux or screen so a dropped SSH session doesn't interrupt it. Use --out DIR to write reports somewhere other than /root.

Any single machine

sh cve-2026-109518-local.sh --audit                  # read-only check
sh cve-2026-109518-local.sh                          # patch (as root)
sh cve-2026-109518-local.sh --csv /root/cve.csv      # also append a CSV row

# Remote, without copying the script over:
ssh root@HOST 'sh -s -- --audit' < cve-2026-109518-local.sh

Reverting the mitigation (experimental)

Experimental. Tested in a lab on real Ubuntu systems only, never on production machines. Reverting is optional: leaving the mitigation in place is safe.

Patching leaves one temporary file per system, /etc/apt/apt.conf.d/99-cve-2026-109518, which turns off APT download retries. Once a system runs the fixed apt, you can remove it so APT retries flaky downloads again (useful over Tor or bad links). Reverting never downgrades or unpatches apt: it only removes that one file.

sh cve-2026-109518-apt-fix-proxmox.sh --revert-check        # read-only: what would happen
sh cve-2026-109518-apt-fix-proxmox.sh --revert              # asks you to type REVERT (--yes to skip)
sh cve-2026-109518-apt-fix-proxmox.sh --restore-mitigation  # undo: put the file back everywhere

sh cve-2026-109518-local.sh --revert-check                  # same, single machine

On each system, --revert refuses (status KEPT) unless all of these hold:

  • the system is verified PATCHED. MITIGATED, UNKNOWN, VULNERABLE and even OK-OLD systems keep the file;
  • the tamper check is clean;
  • the file is byte-for-byte the one these scripts wrote. An edited file or a symlink is left alone.

It also needs root and a writable system, and it keeps a backup in /var/backups/cve-2026-109518/ before removing anything. After removal it confirms APT's config still loads and the system is still PATCHED; if not, it puts the file back. --restore-mitigation restores from that backup (or writes the file fresh), and warns if another APT config sets retries above 0.

Revert statusMeaning
REVERT-READY--revert-check only: safe to revert.
REVERTEDFile removed (backup kept). apt is still patched.
NOTHING-TO-REVERTNo mitigation file on this system.
RESTOREDMitigation is in place again.
KEPTRefused for safety; the detail column says why.

What each script does on every system

  1. Tamper check. Every .deb still in /var/cache/apt/archives is hashed and compared with the SHA-256 in the signed package indexes. The attack swaps a package after APT verifies it, so a swapped package left in the cache won't match. Any mismatch stops the run for that system: it is not patched and is reported as INFECTED?.
  2. Mitigate. Writes /etc/apt/apt.conf.d/99-cve-2026-109518 with Acquire::Retries "0"; and confirms no other config overrides it.
  3. Patch. apt-get update, then upgrades only the apt package. Locally edited APT config files are kept (--force-confold), and packages someone has put on hold are respected, never overridden.
  4. Verify. Re-runs the tamper check, now including the downloaded fix, and decides the final status.

--audit runs step 1 and the verdict only. It writes nothing, runs no apt-get update, and works without root.

How "patched" is decided

The verdict comes from apt's own version and changelog, not from what the distribution calls itself, so it works for derivatives whose os-release is incomplete or misleading:

  • If the installed apt's changelog (/usr/share/doc/apt/changelog.Debian.gz) names CVE-2026-109518, it is patched. This catches derivatives that backport the fix under their own version numbers.
  • Otherwise the version is compared with the table above. apt version series don't overlap between Debian and Ubuntu (except 1.0.x and 3.3.x, which are told apart by the ubuntu/esm suffix), so the right threshold is picked automatically.
  • A version that is higher than the Ubuntu fix but isn't an Ubuntu build is reported as UNKNOWN, not PATCHED. When the script can't prove the fix is there, it says so.
  • The effective Acquire::Retries is worked out even when it isn't set explicitly: an untouched system doesn't list it in apt-config dump, so the default is derived from apt's version (3 from apt 2.3 on, 0 before).
تنزيل الأداة

الأكثر شعبية

عرض الكل →

اكتشف الأدوات الأكثر استخدامًا من قبل مجتمعنا.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 مجموعة أدوات OSINT المثالية: رسم بياني للتحقيق، وتقييم الثقة، وعائلات الأسماء المستعارة، وخريطة، وخط زمني، وتقارير. 49 وحدة، وأكثر من 400 موقع، دون الحاجة إلى مفاتيح API.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # تطبيق GhostLock للتنفيذ بنقرة واحدة (CVE-2026-43499)

    806
  • 3

    wifit3

    derv82/wifit3

    Wifite لكن عبر USB فقط ومتعدد المنصات.

    635
  • 4

    looking-glass

    anonghosty/looking-glass

    منصة CSIRT تستقبل تقارير Shadowserver في MongoDB وتعيد عرضها كخرائط تفاعلية وتحليلات ونتائج وإرشادات ولوحات معلومات تنفيذية.

    454
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer هي منصة مفتوحة المصدر لإدارة الامتيازات (PAM) توفر لفرق DevOps وتكنولوجيا المعلومات وصولًا آمنًا عند الطلب إلى نقاط نهاية SSH وRDP وKubernetes وقواعد البيانات وRemoteApp عبر متصفح الويب.

    434
  • 6

    SafeLine

    chaitin/safeline

    WAF مستضافة ذاتيًا ووكيل عكسي يقوم بتصفية حركة المرور HTTP الضارة، ويمنع هجمات SQL injection و XSS وهجمات البوت، مع تحديد معدل الطلبات وتشفير HTML/JS الديناميكي.

    384

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →