CVE-2026-127162

lxd: Improper output encoding in Prometheus metrics exposition

Published Nov 26, 2026 CVSS 4.0 · 7.1 High EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is an improper output encoding flaw in LXD’s Prometheus metrics exposition. A virtual‑machine owner can supply mountpoint paths or network interface names that contain special characters. Those characters are inserted unescaped into Prometheus metric labels, allowing the attacker to forge host labels or corrupt the metrics stream. The result is that Prometheus scrapers receive malformed data, potentially causing monitoring failures and loss of visibility. This flaw maps to CWE-116 and is classified as a moderate‑severity issue.

Affected Systems

Affected vendors and products are Canonical’s LXD container hypervisor. Versions prior to 5.0.12, 5.21.10, and 6.10.2 are vulnerable. All releases of those branches include the unescaped metrics handling that permits the injection.

Risk and Exploitability

The CVSS score of 7.1 indicates a moderate impact. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is local: a user with the ability to manage a guest VM can control mountpoints and network interface names that influence the host’s metric output. Exploiting this flaw does not require elevated privileges beyond the VM scope and therefore is likely to be feasible on any host running an affected LXD version. The primary risk is disruption of monitoring services rather than direct compromise of host confidentiality or integrity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check Canonical LXD releases for an updated version that fixes the improper encoding issue and upgrade to that version.
  • Restart the LXD service after applying the update to reload configuration and metrics exposition.
  • Validate and sanitize virtual‑machine mountpoint paths and network interface names to avoid special characters that could be mis‑encoded in Prometheus labels.

Generated by OpenCVE AI on November 27, 2026 at 00:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title lxd: Improper output encoding in Prometheus metrics exposition
Weaknesses CWE-116
References
Metrics cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}

Subscriptions

No data.

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Nov 26, 2026, 11:16 PM
Reserved
Nov 12, 2026, 4:02 PM
Status
Deferred
Published
Nov 27, 2026, 12:16 AM
Modified
Nov 27, 2026, 12:16 AM