Path traversal in LXD - CVE-2025-54293

 

Path traversal in LXD - CVE-2025-54293

Published: October 21, 2025 / Updated: April 9, 2026


Vulnerability identifier: #VU117420
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-54293
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences within the validLogFileName() function in lxd/instance_logs.go. A remote user can send a specially crafted HTTP request and read arbitrary files on the system.


Affected software

LXD
Debian Linux
lxd (Debian package)
incus (Debian package)

How to mitigate CVE-2025-54293

Install updates from vendor's website.

LXD - addressed in versions 5.0.5, 5.21.4, 6.5
lxd (Debian package) - addressed in versions 5.0.2+git20231211.1364ae4-9+deb13u1, 5.0.2-5+deb12u1
incus (Debian package) - update to 6.0.4-2+deb13u1

External References

Related Security Bulletins