Samba contains a flaw that allows a remote attacker to gain access to files outside of the share path under the privileges of the user. With a specifically crafted request, an attacker could potentially access files outside the share's root. The issue is due to the unix_convert() and check_name() functions not properly sanitizing user input supplied via the GET, PUT and DIR commands. Samba treats the resulting input as an absolute path rather than relative path to the share.
Classification
Location:
Remote / Network Access
Attack Type:
Input Manipulation
Impact:
Loss of Confidentiality
Exploit:
Exploit Public
Solution
Upgrade to version 2.2.12 or higher, as it has been reported to fix this vulnerability. For the 3.x series, Samba Project has released a patch to address this vulnerability. As a workaround, set "wide links = no" in smb.conf.