# CVE-2023-6943: Code injection in EZSocket

> Remote attackers can execute malicious code via unsafe reflection in Mitsubishi Electric industrial automation software.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 30 Jan 2024
- **Updated:** 19 Sep 2025
- **Also known as:** GHSA-8g5q-mp2w-j766

## What is CVE-2023-6943?

CVE-2023-6943 is a critical code injection vulnerability in Mitsubishi Electric Corporation EZSocket, published on 30 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') vulnerability in Mitsubishi Electric Corporation EZSocket versions 3.0 to 5.92, GT Designer3 Version1(GOT1000) versions 1.325P and prior, GT Designer3 Version1(GOT2000) versions 1.320J and prior, GX Works2 versions 1.11M to 1.626C, GX Works3 versions 1.106L and prior, MELSOFT Navigator versions 1.04E to 2.102G, MT Works2 versions 1.190Y and prior, MX Component versions 4.00A to 5.007H and MX OPC Server DA/UA all versions allows a remote unauthenticated attacker to execute a malicious code by RPC with a path to a malicious library while connected to the products.

Weakness: CWE-470 (Use of Externally-Controlled Input to Select Classes or Code)

## Which versions are affected by CVE-2023-6943?

It affects 10 products.


Products: Mitsubishielectric Ezsocket, Mitsubishielectric Fr Configurator2, Mitsubishielectric Got1000, Mitsubishielectric Got2000, Mitsubishielectric Gx Works2, Mitsubishielectric Gx Works3, Mitsubishielectric Mc Works64, Mitsubishielectric Melsoft Navigator, Mitsubishielectric Mt Works2, Mitsubishielectric Mx Component.

## How do I fix CVE-2023-6943?

No fix has been published for CVE-2023-6943 yet. Limit exposure of the affected software until one is available.

## Is CVE-2023-6943 being exploited?

There is no known exploitation of CVE-2023-6943 in the wild and no public exploit code.

## Other vulnerabilities in Mitsubishi Electric Corporation EZSocket

- [CVE-2023-6942](https://insights.sbomify.com/CVE-2023-6942/): Auth bypass in EZSocket (high 7.5)
- [CVE-2021-20606](https://insights.sbomify.com/CVE-2021-20606/): Denial of service in Mitsubishi Electric GX Works2; Mitsubishi Electric MELSOFT Navigator; Mitsubishi Electric EZSocket (medium 5.5)
- [CVE-2021-20607](https://insights.sbomify.com/CVE-2021-20607/): Integer overflow in Mitsubishi Electric GX Works2; Mitsubishi Electric MELSOFT Navigator; Mitsubishi Electric EZSocket (medium 5.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-6943 and fix it if it is affected.

What it is: CVE-2023-6943 is a critical code injection vulnerability in Mitsubishi Electric Corporation EZSocket, published on 30 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-6943 in the wild and no public exploit code.

Affected product: Mitsubishi Electric Corporation EZSocket. 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-2023-6943/ (Markdown: https://insights.sbomify.com/CVE-2023-6943/index.md)
```

## Sources

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

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