Samba, the open source implementation of the SMB/CIFS protocols, was recently found to be vulnerable to a path traversal attack. This vulnerability could be used by attackers to escape outside the share root directory and possible access the global root directory ‘/’ with the help of a combination of incorrect configuration parameters and permissions.
CVSS v3.0 Severity and Metrics:
Base Score: 9.1 CRITICAL
CVSS v2.0 Severity and Metrics:
Base Score: 6.4 MEDIUM
Samba versions 4.9.x up to 4.9.13, samba 4.10.x up to 4.10.8 and samba 4.11.x up to 4.11.0rc3
To address this vulnerability, the vendor has released patches for the Samba package in all the platforms affected. For more information, please refer to our blog:
Use SanerNow platform to apply this critical patch quickly across the organization as shown below.
Vulnerability detection and patching of Samba:
- Login to SanerNow platform
- Switch to the account/site specific view and Go to 'VM tool'
- If your Application (Samba) is vulnerable, Saner lists CVE-2019-10197 in 'Top Vulnerabilities or 'Recently Discovered Vulnerabilities as shown in the below diagram:
- Search for this vulnerability in VM tool. If you are affected, apply the patch through PM -> Missing Patches.
- Select 'Groups/Devices in the 'Asset Source' section and click 'Apply'.
- Select the product 'samba' from the 'Asset' section as shown in the below diagram:
- Select ‘Apply Selected Patches’ at the rightmost corner. This will prompt for ‘Creating Patch Task’. Fill in ‘Task Name’ and ‘Remediation Schedule as per your preference and click on ‘Apply Selected Patches as shown below:
- Remediation job will be created, which will fix the vulnerabilities by upgrading Samba to the latest version.
- Once remediation is done, the Saner agent automatically scans again and uploads the result to SanerNow as shown below: