External risk intelligence

Pylxd Improper Certificate Validation Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-140083

Pylxd is a Python library used by developers to interact with LXD via APIs. While it performs network operations, it is typically used as a client-side library within application code or automation scripts rather than as an internet-facing service or appliance itself. Direct exposure to the public internet is uncommon as it operates within internal environments or management planes.

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

Improper certificate validation in how Canonical's pylxd creates HTTPS sessions creates a risk where an active network attacker could impersonate the LXD endpoint. This could allow them to read and alter API requests and responses, potentially exposing sensitive information like credentials and instance data through man-in-the-middle interception.

  • Attackers could impersonate LXD systems.
  • Protects sensitive API data from interception.
  • Confirm if this system manages critical data.

Attack Path

How an attacker could exploit the issue

An attacker on the network could impersonate the LXD service by intercepting HTTPS traffic. This is possible because the system does not verify server certificates by default when creating HTTPS sessions, potentially allowing the attacker to read and modify sensitive API data.

  • Active network attacker required.
  • Certificate verification disabled by default.
  • Sensitive data interception and modification.

Live Threat

Current exploitation, exposure, and threat context

An active network attacker could impersonate the LXD endpoint and intercept HTTPS traffic, potentially reading and altering API requests and responses. This could affect credentials, secrets, and instance data when server certificate verification is disabled.

  • LXD API credentials, secrets, and data.
  • Man-in-the-middle interception of HTTPS traffic.
  • Unauthorized access and modification of instance data.

Operational Fix

Recommended remediation, mitigation, and detection steps

Application owners and infrastructure teams are likely responsible for addressing this improper certificate validation vulnerability. The first practical step is to identify all instances of affected technology, confirm their reachability and business criticality, and then assign an owner for remediation planning.

  • Assign ownership based on affected systems.
  • Verify network exposure and business impact.
  • Plan remediation activities with accountable owners.

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 developers use to manage LXD, which is a system container manager. It acts as a bridge, allowing scripts and applications to send commands to LXD APIs to create, monitor, and configure containers or virtual machines. Because it handles communication between your custom software and the container environment, it is a critical component for infrastructure automation and management tasks.

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

CWE-295 refers to improper certificate validation. In the context of this CVE, it means the software fails to verify the identity of the server it is connecting to. Normally, HTTPS uses certificates to prove a server is legitimate. Because pylxd does not enforce this check by default, it might unknowingly establish a secure-looking connection with a malicious actor posing as the LXD service, allowing them to intercept or tamper with your data.

How can an attacker trigger this vulnerability?

An attacker must be positioned on the network path between the pylxd client and the LXD endpoint to perform a man-in-the-middle attack. They need to actively intercept the traffic to present a fake identity. This vulnerability is not triggered by simple passive network monitoring; it specifically relies on the client's failure to verify certificates when the connection is initiated.

Is my system at risk?

According to Halo Surface Signal, direct internet exposure of this library is uncommon because it is generally used for internal management tasks. You are most concerned if your pylxd instances operate in environments where an attacker might gain a foothold to intercept internal network traffic. Review your architecture to see if these connections occur over trusted or untrusted network segments.

What should I do first to address this?

Start by identifying all applications or automation scripts in your environment that utilize the pylxd library. Once you have a list, determine which of these interact with sensitive credentials or manage critical infrastructure data. Assign these systems to the appropriate owners so they can plan for updates and ensure secure communication practices are implemented.

References