Canonical LXD Patched for High-Severity Metrics Injection Flaw

2 min read
Source: CVEs | Zero Wire | Cloudflare Radar
Canonical LXD Patched for High-Severity Metrics Injection Flaw
Photo: CVEs | Zero Wire | Cloudflare Radar
TL;DR

Canonical has released patches for a high-severity vulnerability in LXD that allows virtual machine guests to forge host metrics labels and disrupt monitoring services. The flaw, identified as CVE-2026-127162, stems from improper output encoding in the Prometheus metrics exposition code. Affected versions include LXD 5.0 through 5.0.11, 5.21 through 5.21.9, and 6.10 through 6.10.1. The vulnerability carries a CVSS 4.0 score of 7.1 and enables attackers with low privileges to inject arbitrary labels or break metrics scraping by exploiting unescaped guest-controlled filesystem mountpoints and network interface names.

Key points

  • The vulnerability, CVE-2026-127162, affects Canonical LXD versions prior to 5.0.12, 5.21.10, and 6.10.2.
  • It is classified as a High severity issue with a CVSS 4.0 score of 7.1, primarily impacting availability and integrity.
  • The flaw arises from improper output encoding in the Prometheus metrics exposition, specifically in the lxd/metrics/metrics.go file.
  • Attackers with low privileges, such as a VM guest root, can exploit this by injecting unescaped characters from /proc/mounts and network interface names.
  • The issue allows for the forging of host metric labels and can cause metrics scraping to fail entirely due to malformed output.
  • Canonical has provided fixes in versions 5.0.12, 5.21.10, and 6.10.2 to address the lack of output sanitization.

Background

This disclosure follows a recent trend of high-severity vulnerabilities in software libraries and systems, including issues in MiniMax, browser-use, and Formance Ledger reported in late November 2026. Canonical, the vendor of LXD, is a UK-based software company known for the Ubuntu operating system. The current vulnerability highlights a specific gap in LXD's metrics handling, where standard escaping practices used in libraries like prometheus/client_golang were not applied to guest-controlled data.

Why it matters

The vulnerability poses a significant risk to infrastructure monitoring and observability. By allowing guest-controlled data to break the structure of Prometheus metrics, attackers can obscure security events or disrupt alerting systems. The high availability impact means that a single malicious guest could potentially blind the host's monitoring stack, making it difficult to detect other ongoing attacks or performance issues.

What to watch

Administrators using affected versions of Canonical LXD should upgrade to 5.0.12, 5.21.10, or 6.10.2 immediately to mitigate the risk. Organizations should also review their Prometheus scraping configurations to ensure they can handle or reject malformed metric outputs. Further testing for label escaping in LXD's codebase may be recommended to prevent similar issues in the future.

Share this article

Want the full story? Read the original reporting

Read on CVEs | Zero Wire | Cloudflare Radar