CVE-2017-7494: Samba Remote Code Execution Vulnerability
CVE-2017-7494 is a critical-severity flaw (CVSS 9.8) affecting samba, debian linux, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Used in ransomware campaigns
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 99.4% (top 1%) |
| CISA exploited list | Yes, fix due 2023-04-20, used in ransomware |
| Weakness | CWE-94 |
| Published | 2017-05-30 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: opsxcq/exploit-CVE-2017-7494 (380 stars)
- GitHub PoC: joxeankoret/CVE-2017-7494 (259 stars)
- GitHub PoC: betab0t/cve-2017-7494 (181 stars)
- Write-up: h20566.www2.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbns03755en_us
- Write-up: www.exploit-db.com/exploits/42060/
- Exploit-DB: Samba 3.5.0 - Remote Code Execution
- Exploit-DB: Samba 3.5.0 < 4.4.14/4.5.10/4.6.4 - 'is_known_pipename()' Arbitrary Module Load (Metasploit)
- Metasploit: Samba is_known_pipename() Arbitrary Module Load
Advisories and coverage
Official advisories
- F5 Security Advisories: SambaCry: The Linux Sequel to WannaCry 2017-05-26
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2017-7494?
samba: upgrade to 4.4.0, 4.4.14, 4.5.10, 4.6.4; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2017-7494 being exploited?
Yes. CVE-2017-7494 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2017-7494 affect?
CVE-2017-7494 affects samba, debian linux. Severity is critical (CVSS 9.8). 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
How urgent is CVE-2017-7494?
Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Used in ransomware campaigns; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Debian vulnerabilities · Samba vulnerabilities
Related CVEs
- CVE-2026-1933 HIGH 7.1 DOWNGRADE UPGRADE A flaw was found in Samba’s handling of NTFS-style reparse points on shares configured with read only = yes
- CVE-2026-4408 CRITICAL 9.0 DOWNGRADE UPGRADE A flaw was found in Samba
- CVE-2026-3012 HIGH 8.0 DOWNGRADE UPGRADE A flaw was found in Samba’s certificate auto-enrollment Group Policy handling
- CVE-2026-58224 MEDIUM 6.5 UPGRADE MITIGATE A flaw was found in Samba's CTDB, the clustered database service used by Samba
- CVE-2026-2340 MEDIUM 6.5 DOWNGRADE DOWNGRADE A flaw was found in Samba’s vfs_worm module