CVE-2017-7494: SambaCry (EternalRed)
- Vendors
- Debian ProjectSamba
CVE-2017-7494, also known as SambaCry or EternalRed, is a remote code execution vulnerability in Samba versions beginning with 3.5.0 and preceding the fixed releases 4.4.14, 4.5.10, and 4.6.4. A malicious SMB client can upload a shared library to a writable share and then cause the server to load and execute it. The vulnerability has been exploited by cryptocurrency-mining botnets and ransomware operators.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary code execution on the Samba server, compromising the host and potentially the data it serves. Observed exploitation includes cryptocurrency-miner deployment and ransomware activity, including attacks associated with NamPoHyu. StorageCrypt infections have also been linked to SambaCry, although the associated analyzed artifacts demonstrated mining rather than ransomware behavior.
Mitigation
If you can’t patch tonight, do this now.
Until patches can be applied, restrict SMB access to trusted clients and remove unnecessary write access to shared directories, especially anonymous or guest write access. Block external SMB access on systems intended only for internal use. These controls reduce access to the writable-share prerequisite but do not replace patching.
Remediation
Patch, then assume compromise.
Upgrade Samba to a supported release containing the fix. The original fixed releases are 4.4.14, 4.5.10, and 4.6.4. For appliances that bundle Samba, including NAS devices, install the applicable vendor firmware or security update containing the Samba fix.
Exploits
12 exploits validated by Mallory's analysis. Hidden: 8 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2017-7494 exploited in the wild?
- Yes. As of Nov 9, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 30, 2023.
- Is there a public exploit for CVE-2017-7494?
- Yes. Mallory tracks 12 public exploits or proofs of concept for CVE-2017-7494, the earliest disclosed Mar 24, 2017.
- Is there a patch for CVE-2017-7494?
- Upgrade Samba to a supported release containing the fix. The original fixed releases are 4.4.14, 4.5.10, and 4.6.4.
- What products are affected by CVE-2017-7494?
- Samba and Debian Project Debian Linux.
- How severe is CVE-2017-7494?
- CVE-2017-7494 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.4% (100th percentile) as of Nov 9, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.