CVE-2025-54293
NixOS vulnerability analysis and mitigation

Overview

A path traversal vulnerability (CVE-2025-54293) was discovered in the log file retrieval function of Canonical LXD 5.0 LTS on Linux. The vulnerability was identified on October 2, 2025, affecting authenticated remote users who have access to LXD instances. The issue specifically impacts the validLogFileName function in lxd/instance_logs.go that validates log file names (NVD, GitHub Advisory).

Technical details

The vulnerability exists in the validLogFileName function which insufficiently validates filenames starting with snapshot_ or migration_ prefixes. The function lacks proper validation for the portion after the prefix, enabling path traversal attacks. While Linux typically rejects path traversal attempts like /not_exist_folder/../exist_folder/ within system calls, the attack succeeds in this case because URL normalization by golang's filepath.Join is performed before the validation. The vulnerability has been assigned a CVSS v4.0 score of 7.1 (HIGH) with the vector string 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 (GitHub Advisory).

Impact

The vulnerability allows authenticated remote attackers to read arbitrary files on the host system via crafted log file names or symbolic links. This can lead to unauthorized access to sensitive information including LXD host configuration files (/etc/passwd, /etc/shadow), LXD database files containing information about all projects and instances, configuration files and data of other instances, and other sensitive information on the host system (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in LXD versions 5.21.4 and 6.5. The fix implements proper validation through the shared.IsFileName function, which ensures filenames do not contain /, , or .. characters. For LXD 5.0 LTS and 4.0, while marked as 'Ignored - Not critical', users are strongly advised to upgrade to patched versions to ensure system security (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management