CVE-2026-138340 in Smb4K
Summary
by MITRE • 11/29/2026
KDE Smb4K before 4.0.8 mishandles '.' as the name of a share, a different vulnerability than CVE-2025-66003.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/29/2026
The vulnerability identified in KDE's Smb4K application prior to version 4.0.8 involves an improper handling of directory traversal sequences within SMB network shares. Specifically, the software fails to adequately sanitize or validate input when a share name is designated as a single dot character. This flaw allows for potential path manipulation attacks where an attacker can influence the file system operations performed by the application. The technical root cause lies in the insufficient validation logic that treats the period symbol not merely as a literal filename but potentially interprets it within context of relative path resolution, leading to unintended access or modification of files outside the intended scope.
This issue is distinct from CVE-2025-66003, indicating that while both may relate to SMB handling in similar software ecosystems, they exploit different code paths or validation mechanisms. The specific flaw regarding the dot character suggests a failure in canonicalization checks where the application does not correctly resolve whether the input refers to the current directory or attempts to traverse upwards depending on how the underlying operating system and SMB client libraries interpret such inputs. In many file systems, a single period represents the current working directory, but improper handling can lead to confusion when combined with other path components or when used in contexts expecting absolute paths.
From an operational perspective, this vulnerability could allow a malicious network peer or a compromised SMB server to trick Smb4K into accessing sensitive files located outside of the user's intended browsing context. If the application runs with elevated privileges or if the user has write access to directories above the current share root, an attacker might be able to read confidential data or potentially overwrite critical configuration files. The impact is primarily confined to local file system integrity and confidentiality within the scope of the user running Smb4K, as it does not typically involve remote code execution but rather unauthorized information disclosure or modification through path traversal techniques.
The vulnerability aligns with CWE-22 Improper Limitation of a Pathname to a Restricted Directory which describes flaws where software allows access to files outside of the intended restricted directory by using special characters like dots for relative paths. Additionally, this behavior can be mapped to ATT&CK technique T1083 File and Directory Discovery as it enables an attacker to enumerate or access file structures that should remain hidden from standard browsing operations within a specific share context. Mitigation strategies primarily involve upgrading Smb4K to version 4.0.8 or later where the input validation logic has been corrected to strictly enforce path boundaries and reject ambiguous inputs like isolated dot characters in share names. Users unable to upgrade immediately should exercise caution when interacting with untrusted SMB shares and avoid manually entering suspiciously formatted paths into the application interface until a patch is available.