CVE-2019-3880: Path Traversal
A flaw was found in the way samba implemented an RPC endpoint emulating the Windows registry service API. An unprivileged attacker could use this flaw to create a new registry hive file anywhere they have unix permissions which could lead to creation of a new file in the Samba share. Versions before 4.8.11, 4.9.6 and 4.10.2 are vulnerable.
Other sources
As per samba upstream advisory:
Samba contains an RPC endpoint emulating the Windows registry service API. One of the requests, "winregSaveKey", is susceptible to a path/symlink traversal vulnerability. Unprivileged users can use it to create a new registry hive file anywhere they have unix permissions to create a new file within a Samba share. If they are able to create symlinks on a Samba share, they can create a new registry hive file anywhere they have write access, even outside a Samba share definition.
Note - existing share restrictions such as "read only" or share ACLs do not prevent new registry hive files being written to the filesystem. A file may be written under any share definition wherever the user has unix permissions to create a file.
Existing files cannot be overwritten using this vulnerability, only new registry hive files can be created, however the presence of existing files with a specific name can be detected.
Samba writes or detects the file as the authenticated user, not as root.
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2019-3880?
CVE-2019-3880 is a vulnerability in Samba that allows an unprivileged attacker to create a new registry hive file anywhere they have Unix permissions.
How does CVE-2019-3880 impact Samba?
CVE-2019-3880 allows an attacker to create a new file in the Samba share.
What is the severity of CVE-2019-3880?
The severity of CVE-2019-3880 is medium with a CVSS score of 5.4.
Which versions of Samba are affected by CVE-2019-3880?
Samba versions before 4.8.11, 4.9.6, and 4.10.2 are affected by CVE-2019-3880.
How can I fix CVE-2019-3880 in Samba?
To fix CVE-2019-3880, you should update Samba to version 4.8.11, 4.9.6, or 4.10.2.