Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-54288 — lxd

🟡 CVSS 6.8 — Medium ✅ No Known Exploit CWE-290 NVD
6.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Canonical LXD Source Container Identification Vulnerability via cmdline Spoofing in devLXD Server

Impact

In LXD's devLXD server, the source container identification process uses process cmdline (command line) information, allowing attackers to impersonate other containers by spoofing process names.

The core issue lies in the findContainerForPID function in lxd/api_devlxd.go.

This function identifies senders through two steps as shown below:

1. cmdline-based identification: Check while tracing back through parent processes, and if it starts with [lxc monitor], extract the project name and container name from that process name in the format projectName_containerName.

2. PID namespace-based identification: If not found in Step 1, check against all containers' PID namespaces.

https://github.com/canonical/lxd/blob/43d5189564d27f6161b430ed258c8b56603c2759/lxd/api_devlxd.go#L166-L276

Attackers can exploit Step 1 processing to impersonate arbitrary containers across projects by spoofing process names.

Reproduction Steps

1. Access devLXD server from a normal container (e.g., EEEE):

```

root@EEEE:~# curl --unix-socket /dev/lxd/sock http://lxd-host/1.0/meta-data

instance-id: 9f928574-2561-4eff-af82-a68e57d3c68b

local-hostname: EEEE

```

2. Use exec -a to spoof process name and impersonate another container (DDDD):

```

root@EEEE:~# bash -c "exec -a '[lxc monitor]' curl --unix-socket /dev/lxd/sock http://lxd-host/1.0/meta-data -x 'test-project_DDDD'"

instance-id: 1bb2f1c3-3ad2-4cd6-9965-67b14c3582cc

local-hostname: DDDD

```

This attack successfully obtains metadata (instance-id, local-hostname) of another container

DDDD from within container EEEE.

Risk

This vulnerability allows attackers to perform the following actions:

1. Theft of other containers' metadata information

Obtaining other containers' information via devLXD API's /1.0/meta-data endpoint:

https://github.com/canonical/lxd/blob/43d5189564d27f6161b430ed258c8b56603c2759/lxd/devlxd.go#L295-L304

2. Obtaining other containers' configuration information via devLXD API's /1.0/config and /1.0/config/{key} endpoints:

https://github.com/canonical/lxd/blob/43d5189564d27f6161b430ed258c8b56603c2759/lxd/devlxd.go#L175-L221

https://github.com/canonical/lxd/blob/43d5189564d27f6161b430ed258c8b56603c2759/lxd/devlxd.go#L228-L267

4. Obtaining other containers' device information via devLXD API's /1.0/devices endpoint:

https://github.com/canonical/lxd/blob/43d5189564d27f6161b430ed258c8b56603c2759/lxd/devlxd.go#L377-L395

Particularly in environments where multiple projects run containers on the same LXD host,

inter-project information leakage may occur. The attack prerequisite is root privileges within

any container.

Countermeasures

While containers basically run in separate PID namespaces, based on investigation, the [lxc monitor] process runs in the same PID namespace as the LXD execution process. Therefore, the problem can be resolved by modifying the implementation to use cmdline information only when the PID namespace of the target process matches the PID namespace of the process running LXD.

Patches

| LXD Series | Status |

| ------------- | ------------- |

| 6 | Fixed in LXD 6.5 |

| 5.21 | Fixed in LXD 5.21.4 |

| 5.0 | Ignored - Not critical |

| 4.0 | Ignored - EOL and not critical |

References

Reported by GMO Flatt Security Inc.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs administrative privileges on the target. No user interaction is required. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality high, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: High — administrative rights are needed first.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Changed — a successful attack reaches components beyond the vulnerable one.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

CVE-2025-54288 is classified as CWE-290: Authentication Bypass by Spoofing. Identity is inferred from something an attacker can forge, such as a header or address.

Affected software

CVE-2025-54288 is recorded against 2 packages.

  • github.com/canonical/lxd
  • lxd (from 6.1 up to 6.5)

Timeline and source

Published on 2 October 2025 and last revised on 8 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Package)
pkg.go.dev (Web)

Other advisories for this package

github.com/canonical/lxd has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-290: Authentication Bypass by Spoofing) in other software:

CVE-2025-54288 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 6.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
CWE CWE-290
Public Exploit ✅ No
Source NVD
Published 2025-10-02
Updated 2026-08-20
Modified 2026-07-08
Fix URL N/A

Affected Packages

Software From version Fixed in
github.com/canonical/lxd
lxd 6.1 6.5

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in lxd

CVE-2025-54288 is rated CVSS 6.8 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025