# CODESYS: Multiple products prone to stack based out-of-bounds write

CVE record · `CVE-2022-47386`

- **Identifiers:** `CVE-2022-47386`
- **State:** Confirmed
- **Severity:** CVSS 8.8 High
- **Critical:** No
- **CNA:** CERTVDE
- **Weakness (CWE):** [CWE-787](https://cwe.mitre.org/data/definitions/787.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [CODESYS Control RTE (SL)](https://agentprime.io/advisories/technology/codesys-control-rte-sl.md) · [CODESYS Control RTE (for Beckhoff CX) SL](https://agentprime.io/advisories/technology/codesys-control-rte-for-beckhoff-cx-sl.md) · [CODESYS Control Win (SL)](https://agentprime.io/advisories/technology/codesys-control-win-sl.md) · [CODESYS Control Runtime System Toolkit](https://agentprime.io/advisories/technology/codesys-control-runtime-system-toolkit.md) · [CODESYS Safety SIL2 Runtime Toolkit](https://agentprime.io/advisories/technology/codesys-safety-sil2-runtime-toolkit.md) · [CODESYS Safety SIL2 PSP](https://agentprime.io/advisories/technology/codesys-safety-sil2-psp.md) · [CODESYS HMI (SL)](https://agentprime.io/advisories/technology/codesys-hmi-sl.md) · [CODESYS Development System V3](https://agentprime.io/advisories/technology/codesys-development-system-v3.md) · [CODESYS Control for BeagleBone SL](https://agentprime.io/advisories/technology/codesys-control-for-beaglebone-sl.md) · [CODESYS Control for emPC-A/iMX6 SL](https://agentprime.io/advisories/technology/codesys-control-for-empc-a-imx6-sl.md) · [CODESYS Control for IOT2000 SL](https://agentprime.io/advisories/technology/codesys-control-for-iot2000-sl.md) · [CODESYS Control for Linux SL](https://agentprime.io/advisories/technology/codesys-control-for-linux-sl.md) · [CODESYS Control for PFC100 SL](https://agentprime.io/advisories/technology/codesys-control-for-pfc100-sl.md) · [CODESYS Control for PFC200 SL](https://agentprime.io/advisories/technology/codesys-control-for-pfc200-sl.md) · [CODESYS Control for PLCnext SL](https://agentprime.io/advisories/technology/codesys-control-for-plcnext-sl.md) · [CODESYS Control for Raspberry Pi SL](https://agentprime.io/advisories/technology/codesys-control-for-raspberry-pi-sl.md) · [CODESYS Control for WAGO Touch Panels 600 SL](https://agentprime.io/advisories/technology/codesys-control-for-wago-touch-panels-600-sl.md)
- **Published:** 15 May 2023
- **Updated:** 5 Mar 2025
- **Reviewed by a person:** No

Published by the CVE Program (CNA: CERTVDE) at 15 May 2023, 09:49 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: CODESYS. Product: CODESYS Control RTE (SL).
  - affected: `V0.0.0.0 to before V3.5.19.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control RTE (for Beckhoff CX) SL.
  - affected: `V0.0.0.0 to before V3.5.19.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control Win (SL).
  - affected: `V0.0.0.0 to before V3.5.19.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control Runtime System Toolkit.
  - affected: `V0.0.0.0 to before V3.5.19.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Safety SIL2 Runtime Toolkit.
  - affected: `V0.0.0.0 to before V3.5.19.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Safety SIL2 PSP.
  - affected: `V0.0.0.0 to before V3.5.19.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS HMI (SL).
  - affected: `V0.0.0.0 to before V3.5.19.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Development System V3.
  - affected: `V0.0.0.0 to before V3.5.19.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for BeagleBone SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for emPC-A/iMX6 SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for IOT2000 SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for Linux SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for PFC100 SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for PFC200 SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for PLCnext SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for Raspberry Pi SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected
- Vendor: CODESYS. Product: CODESYS Control for WAGO Touch Panels 600 SL.
  - affected: `V0.0.0.0 to before V4.8.0.0` (semver)
  - Other versions: unaffected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 8.8 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (CERTVDE)

- **CISA KEV:** Not listed.
- **EPSS:** 0.013, the 71st percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 15 May 2023. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2022-47386](https://www.cve.org/CVERecord?id=CVE-2022-47386)
- [NVD: CVE-2022-47386](https://nvd.nist.gov/vuln/detail/CVE-2022-47386)

### References from the CNA

- <https://customers.codesys.com/index.php?eID=dumpFile&t=f&f=17554&token=5444f53b4c90fe37043671a100dffa75305d1825&download=>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-47386>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-47386/>. Everything for agents: <https://agentprime.io/llms.txt>.
