LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2017-7494: Samba Remote Code Execution Vulnerability

RBRecent Breaches Vulnerability Intelligence·Mar 30, 2023
Critical⚠ Actively exploited (CISA KEV)Ransomware-linked
Critical
Severity
Active
CISA KEV
Yes
Ransomware use
Apr 20, 2023
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2017-7494 to its Known Exploited Vulnerabilities catalog on Mar 30, 2023, with a federal patch deadline of Apr 20, 2023 — meaning attackers are actively using it. If you run the affected software, patch it immediately. Ransomware crews are known to exploit this flaw.

Samba contains a 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.

CVE-2017-7494 is a remote code execution vulnerability in Samba, the open-source software that provides file and print sharing services commonly used on Linux and Unix systems to interoperate with Windows environments. A malicious client can upload a shared library to a writable share and then cause the Samba server to load and execute it, giving the attacker the ability to run arbitrary code on the host.

This matters because Samba often sits on file servers that hold sensitive data and are reachable by many clients. Successful exploitation can lead to full server compromise. The vulnerability has been used in ransomware campaigns, so unpatched systems remain a practical target for both opportunistic and targeted attackers.

How it works

The underlying weakness is CWE-94 (code injection). Samba allows clients to write files to shares that have been configured as writable. An attacker who can authenticate or otherwise reach such a share uploads a specially crafted shared library. The attacker then issues a request that causes the Samba process to load that library into its own address space and execute code from it.

Because the library runs with the privileges of the Samba daemon, the attacker gains whatever access the service account possesses. No further details of the exact request sequence or library format are required for defenders; the essential condition is the combination of a writable share and the ability to trigger library loading. Confirm the precise trigger conditions against the vendor advisory.

Am I affected? How to find it in your systems

Samba is typically installed on Linux and Unix file servers, NAS appliances, and domain controllers that provide SMB/CIFS shares. Inventory every host that runs the smbd process or packages named samba, samba-common, or similar.

Because exact vulnerable version ranges are not listed here, compare every discovered Samba version against the vendor advisory to determine exposure.

How to remediate

Apply the vendor-supplied updates for Samba as directed in the official advisory. This is the primary and recommended remediation. After patching, restart the Samba services and verify that the new package version is running.

As additional hardening for this class of flaw:

Confirm the exact package names and update procedures against the vendor advisory before deployment.

If you can't patch immediately

Until the vendor update can be applied, reduce risk with the following compensating controls:

These measures lower the likelihood of successful exploitation but do not replace the vendor patch.

If your data may have been exposed

Actively exploited remote-code-execution vulnerabilities such as this one are frequently used as an initial foothold for ransomware and data theft. If logs or other indicators suggest that a writable share was abused, treat the host as compromised: isolate it, preserve forensic evidence, and begin incident-response procedures. As a quick personal check, you can run a free exposure scan of your email address against known breach data to see whether credentials associated with your organization have already appeared in public dumps.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedSamba · Samba
WeaknessCWE-94
Added to CISA KEVMar 30, 2023
Federal patch deadlineApr 20, 2023
Known ransomware useYes
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities