Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Canonical pylxd WebSocket Certificate Validation Flaw (CVE-2026-127163)

CVE-2026-127163 is improper server certificate validation in Canonical pylxd WebSocket connections.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-127163
Vendor
Canonical
Affected Product
pylxd
Exploitation
Not confirmed
Published
2026-11-26

A network attacker positioned on the connection can impersonate a remote LXD endpoint, read command input, and replace command output. Canonical lists pylxd 2.4.2 and earlier as affected and 2.4.3 as patched.The scenario requires a remote HTTPS LXD client that uses command execution or event WebSockets. The issue concerns the client accepting an unverified WebSocket peer, even when HTTPS server verification is enabled. Canonical does not describe arbitrary authenticated LXD REST access or unconditional remote code execution.

What it allows

How Does CVE-2026-127163 Cross the pylxd Trust Boundary?

The caller can enable certificate verification for its remote HTTPS LXD client. Canonical says pylxd passes that setting to the HTTP session but gives the separate WebSocket only a client certificate and key. When using a vulnerability intelligence platform, identify clients using that remote execution path.

According to the advisory, the WebSocket dependency creates a TLS context without server verification when those settings are absent. An active network attacker must intercept or redirect the WebSocket connection while the verified HTTP requests still reach the legitimate server. The operation secret grants access to the operation but does not prove the server's identity to the client.

Where the pylxd boundary fails
  1. Verified HTTPS clientHTTP server verification remains enabled
  2. Separate WebSocketServer trust setting is not carried over
  3. Network interceptionInput can be read and output replaced

During command execution, the client sends stdin to the unverified peer and accepts stdout and stderr from it. Canonical also identifies event WebSockets that accept incoming JSON through the same flawed options. These are the advisory's stated effects, not a claim that the attacker controls the LXD server.

What Do Current Records Say About Exploitation?

The CISA KEV snapshot released on 25 November 2026 does not list CVE-2026-127163. This catalog status does not establish whether the flaw has been used against a deployment. Brandefense Blackhole counted 2 dark chat items for CVE-2026-127163 from 29 August through 27 November 2026.

Prioritize clients that run remote LXD commands over HTTPS across networks where an active intermediary could exist. Review unusual discrepancies between requested commands and returned output as an investigation lead. Those priorities are our defensive reading of Canonical's preconditions and impact.

Who is affected

Which pylxd Versions Need the CVE-2026-127163 Fix?

Canonical lists the pip package pylxd through 2.4.2 as affected and 2.4.3 as patched. The vulnerable path uses a remote HTTPS LXD endpoint with command execution or event WebSockets. The advisory does not identify a lower affected-version boundary, so a bounded automated version interval is not supplied here.

The Canonical CNA record lists Linux in its affected platform entry. Its narrative description says versions before 2.4.3, while the structured entry starts at 2.4.2. Use the vendor advisory's broader affected-version statement when checking installations.

Inventory the pylxd version in each application environment that connects to remote LXD. Upgrade affected installations to 2.4.3, then verify the version loaded by the running application or environment. Record the verification in your patch management process.

For teams maintaining TLS policy, the certificate authority glossary explains the trust check this WebSocket path failed to apply. A local Unix socket alone does not meet Canonical's remote HTTPS precondition. Keep the actual transport and pylxd package version together in the remediation inventory.

Timeline

  1. 2026-11-26

    Canonical published the pylxd advisory and identified 2.4.3 as the patched version.

  2. 2026-11-26

    The Canonical CNA published the CVE-2026-127163 record with CVSS 4.0 score 9.1.

  3. 2026-11-27

    NVD received the CVE record; its configuration analysis was still pending in the fetched snapshot.

What to do

  1. Find remote pylxd clients

    Inventory applications using pylxd with remote HTTPS LXD endpoints. Identify those that execute commands or consume event WebSockets.

  2. Update affected environments

    Upgrade pylxd 2.4.2 and earlier to Canonical's patched 2.4.3 release in each affected environment.

  3. Verify the active package version

    After updating, confirm the pylxd version loaded by each running application or environment is 2.4.3 or later. Record that check per deployment.

  4. Investigate suspicious output

    Compare unexpected command output or event data with trusted application records. Treat discrepancies as investigation leads, not proof of exploitation.

What Brandefense can do

Frequently Asked Questions

Does HTTPS server verification protect pylxd command WebSockets?

In affected pylxd versions, Canonical says the HTTPS verification setting is not passed to the separate WebSocket TLS options. Upgrade to 2.4.3.

What can a network attacker do with CVE-2026-127163?

Canonical describes reading command stdin and replacing stdout or stderr delivered to the calling application. The advisory does not claim unconditional LXD remote code execution.

Which pylxd release fixes CVE-2026-127163?

Canonical identifies pylxd 2.4.3 as patched. Verify that the version loaded by each affected application is 2.4.3 or later.

Sources

  1. WebSocket exec streams bypass configured TLS server verificationCanonical
  2. CVE-2026-127163 RecordCanonical via CVE Program
  3. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →