CVE-2026-127162 in LXDinfo

Summary

by MITRE • 11/27/2026

Improper output encoding in Prometheus metrics exposition in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows a user controlling a virtual machine to forge host metric labels and break metrics scraping via unescaped guest-controlled filesystem mountpoints and network interface names.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in Canonical LXD versions prior to 5.0.12, 5.21.10, and 6.10.2 represents a critical flaw in the handling of Prometheus metrics exposition within the container runtime environment. This issue stems from improper output encoding when generating metric data for external monitoring systems that scrape these endpoints. The core technical failure lies in the lack of sanitization or escaping applied to dynamic values derived from guest-controlled resources, specifically filesystem mountpoints and network interface names. When a user with control over a virtual machine instance interacts with the LXD daemon, they can manipulate these resource identifiers within their container environment. Because the metrics exposition format does not properly escape special characters inherent in maliciously crafted labels, an attacker can inject arbitrary strings directly into the metric output stream.

This lack of input validation allows for label injection attacks where a compromised guest instance can forge host-level metric labels. In standard Prometheus monitoring architectures, metrics are labeled with metadata such as hostname, interface name, or mount path to distinguish between different resources and instances. By injecting unescaped characters, an attacker can alter these labels effectively impersonating other hosts or services within the monitored infrastructure. This capability breaks the integrity of the metrics scraping process because the monitoring system receives malformed data that does not conform to expected label formats. The presence of invalid characters in metric values causes parsers used by Prometheus and compatible tools to fail during ingestion, leading to dropped samples or complete failure of the scrape job for affected endpoints.

The operational impact of this vulnerability is significant for organizations relying on LXD for infrastructure monitoring via Prometheus. If an attacker successfully exploits this flaw, they can disrupt visibility into system performance and health metrics. This disruption creates blind spots in security operations centers that depend on real-time telemetry to detect anomalies or resource exhaustion events. Furthermore, the ability to forge labels could potentially be leveraged in more sophisticated attacks where false metric data is injected to mislead automated alerting systems or dashboards, causing either alarm fatigue through noise or masking of actual malicious activity by hiding it within fabricated normal-looking metrics. The vulnerability essentially undermines the trustworthiness of observability pipelines that aggregate data from multiple LXD-hosted instances.

From a classification perspective, this flaw aligns with CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component and CWE-20 Improper Input Validation as it involves failing to sanitize user-controlled input before rendering it into an output format consumed by another system. In the context of the MITRE ATT&CK framework, this behavior relates to techniques involving data injection or manipulation of telemetry systems, which can fall under tactics like Defense Evasion if used to hide activity, or Impact if intended to disrupt monitoring capabilities. The specific mechanism of exploiting filesystem and network interface names highlights how container escape vectors often intersect with application-layer protocol vulnerabilities when integration points between guest environments and host services are not strictly isolated at the data serialization layer.

To mitigate this vulnerability, organizations must upgrade their Canonical LXD installations to version 5.0.12 or later for the 5.0 series, version 5.21.10 or later for the 5.21 series, and version 6.10.2 or later for the 6.x series. These updates include patches that enforce strict encoding rules on all dynamic labels generated during metrics exposition. Until an upgrade is performed, administrators should consider restricting access to the Prometheus metrics endpoint by implementing network-level controls such as firewall rules or reverse proxies with authentication requirements. This limits exposure to only trusted monitoring agents and reduces the attack surface available to compromised guest instances attempting to inject malicious label data into the central monitoring infrastructure.

Responsible

Canonical

Reservation

11/12/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00397

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!