Path traversal in Samba - CVE-2019-10218

 

Path traversal in Samba - CVE-2019-10218

Published: October 29, 2019


Vulnerability identifier: #VU22329
CSH Severity: Medium
CVSS v4: 5.9 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-10218
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in filenames within Samba client code (libsmbclient). A malicious SMB server can return a filename to the client containing directory traversal characters and force the client to read or write data to local files.

Successful exploitation of the vulnerability may allow an attacker to overwrite arbitrary files on the client.


Affected software

Samba
Amazon Linux AMI
Arch Linux
Red Hat Enterprise Linux Resilient Storage for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Opensuse
Fedora
libtevent (Red Hat package)
libtdb (Red Hat package)
libtalloc (Red Hat package)
samba (Alpine package)
samba (Red Hat package)
samba (Ubuntu package)
openchange (Red Hat package)
samba
ctdb (Red Hat package)
ctdb-tests (Red Hat package)
RoboHelp
RSA Authentication Manager

How to mitigate CVE-2019-10218

Install updates from vendor's website.

Samba - addressed in versions 4.9.15, 4.10.10, 4.11.2
libtevent (Red Hat package) - update to 0.10.0-4.el7rhgs
libtdb (Red Hat package) - update to 1.4.2-4.el7rhgs
libtalloc (Red Hat package) - update to 2.2.0-9.el7rhgs
samba (Alpine package) - update to 4.8.12-r1
samba (Red Hat package) - addressed in versions 4.11.2-13.el8, 4.11.6-104.el7rhgs
samba (Ubuntu package) - addressed in versions 2:4.3.11+dfsg-0ubuntu0.16.04.23, 2:4.7.6+dfsg~ubuntu-0ubuntu2.13, 2:4.10.0+dfsg-0ubuntu2.6, 2:4.10.7+dfsg-0ubuntu2.2
openchange (Red Hat package) - update to 2.3-24.el8
samba - addressed in versions 4.9.15-0.fc29, 4.10.10-0.fc30, 4.11.2-0.fc31, 4.11.2-1.fc31
ctdb (Red Hat package) - update to 4.10.4-10.el7
ctdb-tests (Red Hat package) - update to 4.10.4-10.el7
RSA Authentication Manager - update to 8.4 Patch 9

External References

Related Security Bulletins