# CVE-2017-0143: Microsoft Windows Server Message Block (SMBv1) Remote Code Execution

> Remote attackers can execute arbitrary code on Windows systems by sending crafted packets to the SMBv1 server.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 3 Nov 2021 (CISA KEV), used in ransomware
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 17 Mar 2017
- **Updated:** 21 Oct 2025
- **Also known as:** GHSA-fqgw-29m3-pwh5

## What is CVE-2017-0143?

CVE-2017-0143 is a high-severity memory corruption vulnerability in Microsoft Corporation Windows SMB, published on 17 Mar 2017. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

The SMBv1 server in Microsoft Windows Vista SP2; Windows Server 2008 SP2 and R2 SP1; Windows 7 SP1; Windows 8.1; Windows Server 2012 Gold and R2; Windows RT 8.1; and Windows 10 Gold, 1511, and 1607; and Windows Server 2016 allows remote attackers to execute arbitrary code via crafted packets, aka "Windows SMB Remote Code Execution Vulnerability." This vulnerability is different from those described in CVE-2017-0144, CVE-2017-0145, CVE-2017-0146, and CVE-2017-0148.

## Which versions are affected by CVE-2017-0143?

It affects 10 products.


Products: Microsoft Server Message Block, Philips Intellispace Portal, Siemens Acuson P300 Firmware, Siemens Acuson P500 Firmware, Siemens Acuson Sc2000 Firmware, Siemens Acuson X700 Firmware, Siemens Syngo Sc2000 Firmware, Siemens Tissue Preparation System Firmware, Siemens Versant Kpcr Molecular System Firmware, Siemens Versant Kpcr Sample Prep Firmware.

## How do I fix CVE-2017-0143?

No fix has been published for CVE-2017-0143 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.

## Is CVE-2017-0143 being exploited?

Yes. Attackers have exploited CVE-2017-0143 in the wild since at least 3 Nov 2021, including in ransomware campaigns.

Public exploit code:

- MS17-010_CVE-2017-0143 (github_poc): https://github.com/h3x0v3rl0rd/MS17-010_CVE-2017-0143
- EternalBlue is a well-known SMB exploit created by the NSA to attack various versions of Windows, including Windows 7. Etern-Blue-Windows-7-Checker will basically send SMB packets to a host to see if that Windows host machine is vulnerable to the EternalBlue exploit (CVE-2017-0143). (github_poc): https://github.com/NatteeSetobol/Etern-blue-Windows-7-Checker
- Simple script using nmap to detect CVE-2017-0143 MS17-010 in your network (github_poc): https://github.com/valarauco/wannafind
- MS17-010 (CVE-2017-0143) - Python3 Script (github_poc): https://github.com/h3x0v3rl0rd/MS17-010
- MS17-010 EternalRomance/EternalSynergy/EternalChampion SMB Remote Windows Command Execution (metasploit)
- MS17-010 EternalBlue SMB Remote Windows Kernel Pool Corruption (metasploit)

## Other vulnerabilities in Microsoft Corporation Windows SMB

- [CVE-2017-0144](https://insights.sbomify.com/CVE-2017-0144/): Microsoft SMBv1 Remote Code Execution (high 8.8, exploited in the wild)
- [CVE-2017-0145](https://insights.sbomify.com/CVE-2017-0145/): Microsoft SMBv1 Remote Code Execution (high 8.8, exploited in the wild)
- [CVE-2017-0146](https://insights.sbomify.com/CVE-2017-0146/): Microsoft Windows SMB Remote Code Execution (high 8.8, exploited in the wild)
- [CVE-2017-0148](https://insights.sbomify.com/CVE-2017-0148/): Microsoft SMBv1 Server Remote Code Execution (high 8.1, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2017-0143 and fix it if it is affected.

What it is: CVE-2017-0143 is a high-severity memory corruption vulnerability in Microsoft Corporation Windows SMB, published on 17 Mar 2017. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2017-0143 in the wild since at least 3 Nov 2021, including in ransomware campaigns.

Affected product: Microsoft Corporation Windows SMB. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2017-0143/ (Markdown: https://insights.sbomify.com/CVE-2017-0143/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2017-0143
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2017-0143
- OSV: https://osv.dev/vulnerability/CVE-2017-0143

---
From sbomify Insights: https://insights.sbomify.com/CVE-2017-0143/
Summaries are generated and may contain mistakes; the official description above is the record.
