CVE-2026-140083: pylxd: Improper certificate validation by default in HTTPS session creation
Improper certificate validation in HTTPS session creation in Canonical pylxd before 2.4.3 allows an active network attacker to impersonate the LXD endpoint and read and alter API requests and responses, including credentials, secrets, and instance data, via man-in-the-middle interception of HTTPS traffic whose server certificate verification is disabled by default.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
canonical/pylxdto a version that resolves this vulnerability.Fixed in 2.4.3
Event History
Frequently Asked Questions
Which deployments are exposed?
pylxd installations before 2.4.3 that create HTTPS sessions with the default server certificate verification behavior are exposed. The affected package is pypi/pylxd.
What does an attacker need to exploit this?
An attacker needs an active man-in-the-middle position on the HTTPS connection between pylxd and the LXD endpoint. They can then impersonate the endpoint because server certificate verification is disabled by default.
What could an attacker access or change?
An attacker intercepting the traffic can read and alter API requests and responses. This can include credentials, secrets, and instance data.
What should be done if upgrading is not immediately possible?
Enable server certificate verification for HTTPS sessions rather than relying on the affected default behavior. This reduces the ability of a network attacker to impersonate the LXD endpoint.