Samba 4.4.x < 4.4.12 / 4.5.x < 4.5.7 / 4.6.x < 4.6.1 Path Renaming Symlink Local File Disclosure

medium Nessus Plugin ID 99199
New! Vulnerability Priority Rating (VPR)

Tenable calculates a dynamic VPR for every vulnerability. VPR combines vulnerability information with threat intelligence and machine learning algorithms to predict which vulnerabilities are most likely to be exploited in attacks. Read more about what VPR is and how it is different from CVSS.

VPR Score: 6.7


The remote Samba server is affected by an information disclosure vulnerability.


The version of Samba running on the remote host is 4.4.x prior to 4.4.12, 4.5.x prior to 4.5.7, or 4.6.x prior to 4.6.1. It is, therefore, affected by an information disclosure vulnerability due to a race condition between calls to lstat() for symlink checks and calls to open() to read a file. A local attacker can exploit this, by replacing a recently checked path with a symlink, to disclose arbitrary files on the system.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.


Upgrade to Samba version 4.4.12 / 4.5.7 / 4.6.1 or later.
Alternatively, apply the patch or workaround referenced in the vendor advisory.

See Also

Plugin Details

Severity: Medium

ID: 99199

File Name: samba_4_6_1.nasl

Version: 1.6

Type: remote

Family: Misc.

Published: 4/5/2017

Updated: 11/13/2019

Dependencies: smb_nativelanman.nasl

Configuration: Enable paranoid mode

Risk Information

Risk Factor: Medium

VPR Score: 6.7

CVSS Score Source: CVE-2017-2619

CVSS v2.0

Base Score: 6

Temporal Score: 4.7

Vector: AV:N/AC:M/Au:S/C:P/I:P/A:P

Temporal Vector: E:POC/RL:OF/RC:C

CVSS v3.0

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:samba:samba

Required KB Items: SMB/NativeLanManager, SMB/samba, Settings/ParanoidReport

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/23/2017

Vulnerability Publication Date: 3/23/2017

Reference Information

CVE: CVE-2017-2619

BID: 97033