CVE-2025-66003: CWE-73: External Control of File Name or Path in https://github.com/KDE/ smb4k
An External Control of File Name or Path vulnerability in smb4k allowsl ocal users to perform a local root exploit via smb4k mounthelper if they can access and control the contents of a Samba shareThis issue affects smb4k: from ? before 4.0.5.
AI Analysis
Technical Summary
CVE-2025-66003 is a vulnerability classified under CWE-73 (External Control of File Name or Path) found in smb4k, a KDE project utility designed to facilitate the management and mounting of Samba shares on Linux systems. The flaw exists in the smb4k mounthelper component, which improperly handles file paths controlled externally by users who have access to Samba shares. Specifically, local users with limited privileges who can access and manipulate the contents of a Samba share can exploit this vulnerability to perform a local root privilege escalation. This occurs because the mounthelper trusts file paths or names originating from the Samba share without sufficient validation or sanitization, allowing crafted inputs to influence system-level operations. The vulnerability affects all versions prior to 4.0.5, with no patch links currently provided but an upgrade path implied. The CVSS 4.0 vector indicates a local attack vector (AV:L), high attack complexity (AC:H), no privileges required beyond local user (PR:L), no user interaction (UI:N), and high impact on confidentiality, integrity, and availability (VC:H, VI:H, VA:H). No known exploits have been reported in the wild, but the potential for local root compromise makes this a critical concern for environments where smb4k is deployed and Samba shares are accessible to untrusted or semi-trusted users.
Potential Impact
For European organizations, this vulnerability poses a significant risk primarily in environments where smb4k is used to manage Samba shares, especially in multi-user systems or shared workstations. Successful exploitation results in local privilege escalation to root, enabling attackers to gain full control over affected systems. This can lead to unauthorized access to sensitive data, system manipulation, and disruption of services. The impact extends to confidentiality, integrity, and availability of systems, potentially allowing attackers to install persistent malware, exfiltrate data, or disrupt operations. Organizations with collaborative file-sharing environments or those using Linux desktops with KDE and Samba integration are particularly vulnerable. Given the local access requirement, insider threats or compromised user accounts represent the most likely attack vectors. The absence of known exploits reduces immediate risk but does not diminish the urgency of remediation due to the high potential impact.
Mitigation Recommendations
To mitigate this vulnerability, organizations should promptly upgrade smb4k to version 4.0.5 or later once available, as this version addresses the path validation issues. Until an upgrade is possible, restrict access to Samba shares to trusted users only and enforce strict permissions to prevent unauthorized modification of share contents. Implement monitoring for unusual local user activities on systems running smb4k, focusing on mounthelper usage and file path manipulations. Employ Linux security modules such as AppArmor or SELinux to confine smb4k mounthelper processes, limiting their ability to escalate privileges. Regularly audit local user accounts and remove unnecessary privileges to reduce the attack surface. Additionally, educate users about the risks of manipulating Samba share contents and enforce network segmentation to isolate critical systems from less trusted user environments.
Affected Countries
Germany, Netherlands, France, Sweden, Finland, United Kingdom
CVE-2025-66003: CWE-73: External Control of File Name or Path in https://github.com/KDE/ smb4k
Description
An External Control of File Name or Path vulnerability in smb4k allowsl ocal users to perform a local root exploit via smb4k mounthelper if they can access and control the contents of a Samba shareThis issue affects smb4k: from ? before 4.0.5.
AI-Powered Analysis
Technical Analysis
CVE-2025-66003 is a vulnerability classified under CWE-73 (External Control of File Name or Path) found in smb4k, a KDE project utility designed to facilitate the management and mounting of Samba shares on Linux systems. The flaw exists in the smb4k mounthelper component, which improperly handles file paths controlled externally by users who have access to Samba shares. Specifically, local users with limited privileges who can access and manipulate the contents of a Samba share can exploit this vulnerability to perform a local root privilege escalation. This occurs because the mounthelper trusts file paths or names originating from the Samba share without sufficient validation or sanitization, allowing crafted inputs to influence system-level operations. The vulnerability affects all versions prior to 4.0.5, with no patch links currently provided but an upgrade path implied. The CVSS 4.0 vector indicates a local attack vector (AV:L), high attack complexity (AC:H), no privileges required beyond local user (PR:L), no user interaction (UI:N), and high impact on confidentiality, integrity, and availability (VC:H, VI:H, VA:H). No known exploits have been reported in the wild, but the potential for local root compromise makes this a critical concern for environments where smb4k is deployed and Samba shares are accessible to untrusted or semi-trusted users.
Potential Impact
For European organizations, this vulnerability poses a significant risk primarily in environments where smb4k is used to manage Samba shares, especially in multi-user systems or shared workstations. Successful exploitation results in local privilege escalation to root, enabling attackers to gain full control over affected systems. This can lead to unauthorized access to sensitive data, system manipulation, and disruption of services. The impact extends to confidentiality, integrity, and availability of systems, potentially allowing attackers to install persistent malware, exfiltrate data, or disrupt operations. Organizations with collaborative file-sharing environments or those using Linux desktops with KDE and Samba integration are particularly vulnerable. Given the local access requirement, insider threats or compromised user accounts represent the most likely attack vectors. The absence of known exploits reduces immediate risk but does not diminish the urgency of remediation due to the high potential impact.
Mitigation Recommendations
To mitigate this vulnerability, organizations should promptly upgrade smb4k to version 4.0.5 or later once available, as this version addresses the path validation issues. Until an upgrade is possible, restrict access to Samba shares to trusted users only and enforce strict permissions to prevent unauthorized modification of share contents. Implement monitoring for unusual local user activities on systems running smb4k, focusing on mounthelper usage and file path manipulations. Employ Linux security modules such as AppArmor or SELinux to confine smb4k mounthelper processes, limiting their ability to escalate privileges. Regularly audit local user accounts and remove unnecessary privileges to reduce the attack surface. Additionally, educate users about the risks of manipulating Samba share contents and enforce network segmentation to isolate critical systems from less trusted user environments.
Affected Countries
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- suse
- Date Reserved
- 2025-11-19T08:52:54.076Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 695fc7afc901b06321f9519d
Added to database: 1/8/2026, 3:05:19 PM
Last enriched: 1/8/2026, 3:20:02 PM
Last updated: 1/9/2026, 10:56:01 AM
Views: 15
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-40361
LowCVE-2026-22713: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in The Wikimedia Foundation Mediawiki - GrowthExperiments Extension
LowCVE-2026-22712: CWE-116 Improper Encoding or Escaping of Output in The Wikimedia Foundation Mediawiki - ApprovedRevs Extension
LowCVE-2025-64093: Vulnerability in Zenitel ICX500
CriticalCVE-2025-64092: Vulnerability in Zenitel ICX500
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.