External risk intelligence

Pylxd Improper Certificate Validation Allows Command Injection

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-127163

pylxd is a library used by developers to interact with LXD container management services. While it handles network connections, it is typically used within internal tooling, automation scripts, or developer environments rather than as a public-facing service. Public internet exposure of the LXD API itself is uncommon and generally restricted to internal administrative networks.

Halo Surface Signal: 2 out of 5 — less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A security vulnerability has been identified in a component used for managing Linux containers, specifically within its handling of secure network connections. This flaw could potentially allow unauthorized access to sensitive information transmitted during command execution or enable the modification of command output. The primary concern is to confirm if this technology is in use and exposed within our environment.

  • Vulnerability in secure container connection handling.
  • Matters if internal container management is exposed.
  • Assess relevance and potential exposure.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by impersonating a legitimate LXD endpoint on the network. This allows them to intercept and read sensitive information sent over WebSocket connections, such as command input, and also to inject false output to mislead users or systems.

  • Network attacker impersonates LXD endpoint.
  • Improper certificate validation in websocket connections.
  • Read command stdin and spoof command output.

Live Threat

Current exploitation, exposure, and threat context

A network attacker could read sensitive command input and inject false command output by impersonating a remote LXD endpoint, due to improper certificate validation in websocket connections. This may occur when the vulnerable service is accessible over a network and the attacker can intercept or manipulate the connection.

  • Command input and output.
  • Impersonating a remote LXD endpoint.
  • Unauthorized command execution.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in pylxd affects applications using websocket connections for LXD communication. Owners of applications that leverage LXD or the underlying pylxd library should prioritize identifying instances of this technology within their environment. The initial focus should be on determining exposure, confirming business criticality, and identifying the accountable team for remediation planning.

  • Identify affected applications and owners.
  • Verify network reachability and criticality.
  • Plan remediation based on identified risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is pylxd?

Pylxd is a Python library that enables developers to programmatically interact with LXD, the system container manager. It acts as a client-side interface, allowing scripts and internal applications to perform administrative tasks like creating, managing, and executing commands within Linux containers.

What does CWE-295 mean for CVE-2026-127163?

CWE-295 refers to improper certificate validation. In this CVE, it means the pylxd library fails to properly verify the identity of the remote LXD server during a WebSocket connection. Because the library accepts the connection without confirming the server's authenticity, an attacker can impersonate a legitimate endpoint to intercept data.

How can an attacker trigger this vulnerability?

An attacker triggers this by positioning themselves on the network to intercept the WebSocket traffic and presenting a fraudulent certificate. It is important to note that this requires the attacker to be in a position to spoof or manipulate the network path between the client and the LXD endpoint; it does not trigger from simple local usage of the library.

Is my environment at risk from this vulnerability?

According to Halo Surface Signal, this vulnerability is considered unlikely for most environments. Pylxd is typically deployed in internal tooling, automation scripts, or developer environments rather than public-facing services. You should assess if your specific applications are using pylxd to communicate with LXD endpoints accessible over untrusted network segments.

What should I do if I use pylxd?

First, locate all applications or automation workflows in your environment that utilize the pylxd library. Once identified, verify their network reachability to determine if they communicate with remote endpoints over networks where interception is possible. After mapping these dependencies, plan to update to the remediated version, pylxd 2.4.3 or later.

References