Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/dehasoft-tr/cve-2026-112816
Defensive ToolsContainer SecurityVulnerability AnalysisScripting & AutomationConfiguration AuditingCloud SecurityIncident Response
GitHubdehasoft-tr/cve-2026-112816

cve-2026-112816

Bash script that checks Ubuntu LXD and MicroCloud Snap versions against CVE-2026-112816 safe thresholds and applies channel-preserving snap refresh remediation.

View Repository
526 days agoNot yet reviewed
Share

CVE-2026-112816 — Ubuntu LXD & MicroCloud Security Updater

A Bash script that checks Canonical LXD and MicroCloud Snap installations on Ubuntu for CVE-2026-112816 and applies the necessary security updates.

[!WARNING] Critical security vulnerability (CVSS v4.0: 10.0). In production environments, take a backup first and plan an appropriate maintenance window. The script's success only confirms that the installed version has reached the announced remediation threshold; it does not prove that no attack has occurred in the past.

Table of Contents

  • About the vulnerability
  • Supported versions
  • Requirements
  • Quick start
  • Commands and parameters
  • How does it work?
  • Exit codes
  • Production and cluster environments
  • Troubleshooting
  • Scope and limitations
  • Official resources

About the vulnerability

CVE-2026-112816 is an authentication bypass vulnerability in Canonical LXD's HTTPS interface arising from the way the client TLS certificate chain is verified. An attacker who can access the LXD API can impersonate a trusted client by using a crafted chain that leverages that client's public certificate. Depending on the privileges obtained, this can have serious effects on the cluster, managed containers/virtual machines, and the host system. Canonical has also released a fix for MicroCloud.

  • CVE: CVE-2026-112816
  • Announcement date: October 30, 2026 (CVE record)
  • Severity: Critical, CVSS v4.0 10.0
  • Affected software: Canonical LXD and related MicroCloud installations

Supported versions

The following versions are the minimum safe versions included in Canonical's remediation list dated October 29, 2026.

Snap packageSnap channel (track)Minimum safe version
lxd4.0/stable4.0.15
lxd5.0/stable5.0.11
lxd5.21/stable5.21.9
lxd6/stable6.10.1
microcloud2/stable2.1.5
microcloud3/stable3.4.1

When the script encounters a risky installation of these tracks other than stable, it compares it against the same safe version threshold without switching channels. If a recognized version family is in use, it can also evaluate the latest track. An unknown track/version is not automatically considered safe.

[!NOTE] Canonical has stated that, on the announcement date, the LXD fixes were rolled out gradually from the candidate channel to the stable channel. Even if snap refresh succeeds, the script returns a failure result if a sufficiently new version is not delivered. The script does not switch to candidate or a different channel on its own to obtain the fix.

Requirements

  • Ubuntu and Bash (the dpkg version comparison tool available on Ubuntu).
  • lxd and/or microcloud installed via Snap.
  • root/sudo privileges for updating and access to the Snap Store.
  • The lxc client for cluster detection (used if present); failure of access or the command does not prove that there is no cluster.

This tool does not update LXD installed via APT/DEB, compiled from source, or installed by other means. If LXD is not installed, the script does not perform a new installation.

Quick start

Keep the script and this README in the same directory:

.
├── README.md
└── fix-cve-2026-112816.sh

1. Syntax check (optional)

bash -n fix-cve-2026-112816.sh

2. First, just check

bash fix-cve-2026-112816.sh --check

--check is the default mode. It makes no updates. It shows the current Snap version, the tracked channel, and the minimum safe version.

3. Apply the fix after the backup and maintenance plan

sudo bash fix-cve-2026-112816.sh --apply

This command runs snap refresh <paket> only for the lxd/microcloud Snap packages that remain below the threshold, while preserving the currently tracked channel.

4. Re-check after the operation

bash fix-cve-2026-112816.sh --check
snap list lxd microcloud

On some versions, the second command may fail if one of the packages is not installed. In that case, run snap list lxd and snap list microcloud separately.

A successful result means that the detected package versions have reached the thresholds above. Verify service health separately using lxc list, lxc cluster list (if a cluster exists), and your application monitoring systems.

Commands and parameters

ParameterDescription
--checkRead-only version and security threshold check; default.
--applyApplies a security update from the current channel if needed. Requires sudo.
--cluster-okExplicitly overrides the protection only when Cluster/MicroCloud maintenance has been planned separately.
-h, --helpDisplays usage help.

Examples

# Salt okunur kontrol (parametresiz de çalışır)
bash fix-cve-2026-112816.sh

# Tek sunucuda düzeltme
sudo bash fix-cve-2026-112816.sh --apply

# YALNIZCA koordineli cluster bakımı onaylandıysa
sudo bash fix-cve-2026-112816.sh --apply --cluster-ok

# Çıktıyı bir dosyada sakla
sudo bash fix-cve-2026-112816.sh --check > lxd-cve-check.log 2>&1

What does --cluster-ok mean in a cluster?

This parameter does not perform an automatic, sequential, or uninterrupted cluster update. It only removes the script's cluster/MicroCloud protection. The compatible upgrade and operational process for each member must be planned separately by the administrator.

How does it work?

  1. It uses snap list to look for the lxd and microcloud packages.
  2. It normalizes the versions found and compares them against the safe thresholds with dpkg --compare-versions.
  3. In --check mode, it only reports the result.
  4. In --apply mode, if an update is required, it checks the MicroCloud/cluster safety protection.
  5. If appropriate, it applies snap refresh only to the relevant package; it does not change the Snap channel.
  6. After the update, it rechecks the package version and the tracked channel.
  7. If the update is not sufficient or the version cannot be verified, it does not consider the operation successful.

Re-runnable: If the version is already at the safe threshold, the script reports that no update is required.

Exit codes

CodeMeaningAction to take
0The detected supported Snap packages meet the thresholds or no package was found.Check whether the package is actually installed; verify service health.
2Parameter error, missing requirement, or no root privileges for the update.Fix the invalid parameter; use sudo if necessary.
4Coordinated maintenance approval is required for the cluster/MicroCloud.Complete the cluster plan and use --cluster-ok only when appropriate.
10At least one package remained below the minimum safe version.Check the Snap distribution status and follow the update process.
11The version/channel of at least one installation could not be verified, or a non-Snap LXD was detected.Manual verification and vendor documentation are required.

Important: Exit code 0 does not indicate that LXD never had a vulnerability, that all components are safe, or that no exploitation occurred in the past. 0 may also be returned on a server where no Snap package is detected.

Example automation:

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    957
  • 2

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    768
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    595
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    509
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    463
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP server exposing 180+ reverse-engineering tools that aggregate Ghidra, IDA, x64dbg, Frida and 56 other backends with native binary parsers and a 4,200-skill knowledge base.

    357

Explore all tools

Browse our collection of tools

View all tools →