Samba
Samba Remote Code Execution Vulnerability
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.
Timeline
Days relative to CVE publicationFirst public PoC 6.8 days before publication; added to CISA KEV 5.8 years after publication. First PoC: Samba 3.5.0 - Remote Code Execution (Exploit-DB, 24 May 2017).
PoC repositories
Found on GitHub.18 PoCs · 4 pending · 10 informational · 3 suspicious or fake
PoCs 18
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| homjxi0e/CVE-2017-7494 | 25 May 2017 −5.2 d | 0 | PoC |
| brianwrf/SambaHunter | 30 May 2017 −3 h | 57 | PoC older repo: PoC date unknown, not used for the first PoC |
| joxeankoret/CVE-2017-7494 | 5 Jun 2017 +5.9 d | 259 | PoC |
| incredible1yu/CVE-2017-7494 | 10 May 2018 +345 d | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| cved-sources/cve-2017-7494 | 6 Jan 2019 +1.6 y | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| cyberharsh/Samba7494 | 7 Sep 2020 +3.3 y | 0 | PoC |
| the-aerospace-corporation/counter-reconnaissance-program | 22 Sep 2020 +3.3 y | 5 | PoC |
| 0xm4ud/noSAMBAnoCRY-CVE-2017-7494 | 9 May 2021 +3.9 y | 5 | PoC |
| m4udSec/noSAMBAnoCRY-CVE-2017-7494 | 9 May 2021 +3.9 y | 5 | PoC |
| I-Rinka/BIT-EternalBlue-for-macOS_Linux | 15 May 2021 +4.0 y | 4 | PoC
Flags · score 40
Below the suspicion threshold (50); does not change the assessment. |
| 00mjk/exploit-CVE-2017-7494 | 29 May 2022 +5.0 y | 1 | PoC |
| caique-garbim/CVE-2017-7494_SambaCry | 1 Nov 2022 +5.4 y | 7 | PoC |
| d3fudd/CVE-2017-7494_SambaCry | 1 Nov 2022 +5.4 y | 7 | PoC |
| NhutMinh2801/CVE_2017_7494 | 12 Dec 2023 +6.5 y | 0 | PoC via PoC Index |
| sudlit/CVE-2017-7494 | 2 Dec 2025 +8.5 y | 0 | PoC |
| Zanex360/cdt-vulnsamba-deploy | 7 Feb 2026 +8.7 y | 0 | PoC
Flags · score 25
Below the suspicion threshold (50); does not change the assessment. |
| YonLiud/CVE-2017-7494 | 15 Aug 2026 +9.2 y | 2 | PoC |
| CyberCTF/vulhub-samba-cve-2017-7494 | 8 Oct 2026 +9.4 y | 0 | PoC |
Pending 4
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Waffles-2/SambaCry | 26 May 2017 −4.4 d | backfilled | 63 | Pending · mkdir /quarantine/Waffles-2__SambaCry-7cf231b8cb08: permission denied |
| HarshithM834/CYSE425-Lab1-Samba-Security-Assessment | 12 Nov 2026 +9.5 y | 14 Nov 2026 | 0 | Pending |
| yinyinmeimei/CVE-2017-7494-payload | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| yinyinnnnn/CVE-2017-7494-payload | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
Informational 10
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Zer0d0y/Samba-CVE-2017-7494 | 28 Jul 2017 +59 d | backfilled | 1 | Informational · write-up |
| john-80/cve-2017-7494 | 30 Dec 2019 +2.6 y | backfilled | 0 | Informational · write-up |
| Hansindu-M/CVE-2017-7494_IT19115344 | 10 May 2020 +2.9 y | backfilled | 0 | Informational · write-up |
| ashueep/SMB-Exploit | 4 Dec 2020 +3.5 y | backfilled | 1 | Informational · write-up |
| amaaledi/SNP_Project_Linux_Vulnerability_Exploit | 3 Jun 2021 +4.0 y | backfilled | 0 | Informational · write-up |
| adjaliya/-CVE-2017-7494-Samba-Exploit-POC | 29 Sep 2021 +4.3 y | backfilled | 0 | Informational · write-up |
| BJ-PXD/Explotacion-de-Vulnerabiliddes-bee-box | 28 Aug 2024 +7.2 y | backfilled | 0 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| FelipeR-UFBA/cve-2017-7494-fixed | 22 Nov 2025 +8.5 y | backfilled | 0 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| Zanex360/cdt-samba-deploy | 7 Feb 2026 +8.7 y | backfilled | 0 | Informational · write-up |
| JA-Cyber365/home-network-security-assessment | 19 Oct 2026 +9.4 y | 14 Nov 2026 | 0 | Informational · write-up |
Suspicious or fake 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| betab0t/cve-2017-7494 | 25 May 2017 −5.2 d | 181 | Fake
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| opsxcq/exploit-CVE-2017-7494 | 26 May 2017 −4.7 d | 381 | Fake |
| giuseppsss/sambacry-pw2 | 30 Sep 2020 +3.3 y | 1 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | 42060 | unknown | 14 Nov 2026 |
| CVE record (tagged exploit) | 42084 | unknown | 14 Nov 2026 |
| Exploit-DB | Samba 3.5.0 - Remote Code Execution | 24 May 2017 | 14 Nov 2026 |
| Exploit-DB | Samba 3.5.0 < 4.4.14/4.5.10/4.6.4 - 'is_known_pipename()' Arbitrary Module Load (Metasploit) | 29 May 2017 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Samba is_known_pipename() Arbitrary Module Load (exploit/linux/samba/is_known_pipename) | 25 May 2017 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 18 PoC reposGET /assets/compile-samba-macos/nss.diff
- Seen in
- 1 repo: I-Rinka/BIT-EternalBlue-for-macOS_Linux
- Evidence
- I-Rinka/BIT-EternalBlue-for-macOS_Linux/README.md:229
GET /myshare/isoloom-missing-file
- Seen in
- 1 repo: CyberCTF/vulhub-samba-cve-2017-7494
- Evidence
- CyberCTF/vulhub-samba-cve-2017-7494/checks/share.sh:5
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/assets/compile-samba-macos/nss\.diff(?:[?#].*)?$
(?i)^/myshare/isoloom-missing-file(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-7494 Samba samba exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/assets/compile-samba-macos/nss.diff"; reference:url,poc.griffinguard.io/cve/CVE-2017-7494; classtype:web-application-attack; sid:9482960; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-7494 Samba samba exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/myshare/isoloom-missing-file"; reference:url,poc.griffinguard.io/cve/CVE-2017-7494; classtype:web-application-attack; sid:9593548; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Samba samba exploit attempt (CVE-2017-7494)
id: gg-pocmon-cve-2017-7494-9482960
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-7494. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-7494
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/assets/compile-samba-macos/nss.diff'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2017.7494
title: Samba samba exploit attempt (CVE-2017-7494)
id: gg-pocmon-cve-2017-7494-9593548
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-7494. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-7494
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/myshare/isoloom-missing-file'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2017.7494