Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allowing a malicious client to upload a shared library to a writable share, and then cause the server to load and execute it.
https://www.samba.org/samba/security/CVE-2017-7494.html
https://www.exploit-db.com/exploits/42084/
https://www.exploit-db.com/exploits/42060/
https://security.netapp.com/advisory/ntap-20170524-0001/
https://security.gentoo.org/glsa/201805-07
https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03759en_us
https://h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbns03755en_us
https://access.redhat.com/errata/RHSA-2017:1390
https://access.redhat.com/errata/RHSA-2017:1273
https://access.redhat.com/errata/RHSA-2017:1272
https://access.redhat.com/errata/RHSA-2017:1271
https://access.redhat.com/errata/RHSA-2017:1270
http://www.securitytracker.com/id/1038552