# CVE-2022-43716: Use after free in SIMATIC CP 1242-7 V2

> An attacker can cause a denial of service by triggering a use-after-free vulnerability in the webserver, leading to a restart.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 11 Apr 2023
- **Updated:** 10 Sep 2024
- **Also known as:** GHSA-m73h-5f8p-xrgj

## What is CVE-2022-43716?

CVE-2022-43716 is a high-severity use after free vulnerability in Siemens SIMATIC CP 1242-7 V2, published on 11 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A vulnerability has been identified in SIMATIC CP 1242-7 V2 (6GK7242-7KX31-0XE0) (All versions < V3.4.29), SIMATIC CP 1243-1 (6GK7243-1BX30-0XE0) (All versions < V3.4.29), SIMATIC CP 1243-1 DNP3 (incl. SIPLUS variants) (All versions < V3.4.29), SIMATIC CP 1243-1 IEC (incl. SIPLUS variants) (All versions < V3.4.29), SIMATIC CP 1243-7 LTE EU (6GK7243-7KX30-0XE0) (All versions < V3.4.29), SIMATIC CP 1243-7 LTE US (6GK7243-7SX30-0XE0) (All versions < V3.4.29), SIMATIC CP 1243-8 IRC (6GK7243-8RX30-0XE0) (All versions < V3.4.29), SIMATIC CP 1542SP-1 (6GK7542-6UX00-0XE0) (All versions < V2.3), SIMATIC CP 1542SP-1 IRC (6GK7542-6VX00-0XE0) (All versions < V2.3), SIMATIC CP 1543SP-1 (6GK7543-6WX00-0XE0) (All versions < V2.3), SIMATIC CP 443-1 (6GK7443-1EX30-0XE0) (All versions < V3.3), SIMATIC CP 443-1 (6GK7443-1EX30-0XE1) (All versions < V3.3), SIMATIC CP 443-1 Advanced (6GK7443-1GX30-0XE0) (All versions < V3.3), SIPLUS ET 200SP CP 1542SP-1 IRC TX RAIL (6AG2542-6VX00-4XE0) (All versions < V2.3), SIPLUS ET 200SP CP 1543SP-1 ISEC (6AG1543-6WX00-7XE0) (All versions < V2.3), SIPLUS ET 200SP CP 1543SP-1 ISEC TX RAIL (6AG2543-6WX00-4XE0) (All versions < V2.3), SIPLUS NET CP 1242-7 V2 (6AG1242-7KX31-7XE0) (All versions < V3.4.29), SIPLUS NET CP 443-1 (6AG1443-1EX30-4XE0) (All versions < V3.3), SIPLUS NET CP 443-1 Advanced (6AG1443-1GX30-4XE0) (All versions < V3.3), SIPLUS S7-1200 CP 1243-1 (6AG1243-1BX30-2AX0) (All versions < V3.4.29), SIPLUS S7-1200 CP 1243-1 RAIL (6AG2243-1BX30-1XE0) (All versions < V3.4.29), SIPLUS TIM 1531 IRC (6AG1543-1MX00-7XE0) (All versions < V2.3.6), TIM 1531 IRC (6GK7543-1MX00-0XE0) (All versions < V2.3.6). The webserver of the affected products contains a vulnerability that may lead to a denial of service condition. An attacker may cause a denial of service situation which leads to a restart of the webserver of the affected product.

Weakness: CWE-416 (Use After Free)

## Which versions are affected by CVE-2022-43716?

It affects 24 products.


Products: Siemens Simatic Cp 1242-7 V2 Firmware, Siemens Simatic Cp 1243-1 Dnp3 Firmware, Siemens Simatic Cp 1243-1 Firmware, Siemens Simatic Cp 1243-1 Iec Firmware, Siemens Simatic Cp 1243-7 Lte Eu Firmware, Siemens Simatic Cp 1243-7 Lte Us Firmware, Siemens Simatic Cp 1243-8 Irc Firmware, Siemens Simatic Cp 1542sp-1 Firmware, Siemens Simatic Cp 1542sp-1 Irc Firmware, Siemens Simatic Cp 1543sp-1 Firmware, Siemens Simatic Cp 443-1 Advanced Firmware, Siemens Simatic Cp 443-1 Firmware, Siemens Simatic Ipc Diagbase Firmware, Siemens Simatic Ipc Diagmonitor Firmware, Siemens Siplus Et 200sp Cp 1542sp-1 Irc Tx Rail Firmware, Siemens Siplus Et 200sp Cp 1543sp-1 Isec Firmware, Siemens Siplus Et 200sp Cp 1543sp-1 Isec Tx Rail Firmware, Siemens Siplus Net Cp 1242-7 V2 Firmware, Siemens Siplus Net Cp 443-1 Advanced Firmware, Siemens Siplus Net Cp 443-1 Firmware and 4 more.

## How do I fix CVE-2022-43716?

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

## Is CVE-2022-43716 being exploited?

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

## Other vulnerabilities in Siemens SIMATIC CP 1242-7 V2

- [CVE-2022-34819](https://insights.sbomify.com/CVE-2022-34819/): Memory corruption in SIMATIC CP 1242-7 V2 (critical 10.0)
- [CVE-2022-34821](https://insights.sbomify.com/CVE-2022-34821/): Code injection in RUGGEDCOM RM1224 LTE(4G) EU (high 8.8)
- [CVE-2022-34820](https://insights.sbomify.com/CVE-2022-34820/): Command injection in SIMATIC CP 1242-7 V2 (high 8.4)
- [CVE-2022-43767](https://insights.sbomify.com/CVE-2022-43767/): Denial of service in SIMATIC CP 1242-7 V2 (high 7.5)
- [CVE-2022-43768](https://insights.sbomify.com/CVE-2022-43768/): Denial of service in SIMATIC CP 1242-7 V2 (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-43716 and fix it if it is affected.

What it is: CVE-2022-43716 is a high-severity use after free vulnerability in Siemens SIMATIC CP 1242-7 V2, published on 11 Apr 2023. 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-2022-43716 in the wild and no public exploit code.

Affected product: Siemens SIMATIC CP 1242-7 V2. 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-2022-43716/ (Markdown: https://insights.sbomify.com/CVE-2022-43716/index.md)
```

## Sources

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

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