CVE-2020-10245 is a heap-based buffer overflow (CWE-787) in the CODESYS V3 web server, the runtime component that serves WebVisu screens, in all versions before 3.5.15.40. Crafted requests need no login and can crash the web server, stop the runtime or run code on the controller. NVD scores it 9.8, and a public proof of concept exists.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
2.9%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2020-10245 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| CODESYS Control for BeagleBone with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_for_beaglebone:*:*:*:*:*:*:*:* | before 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control for emPC-A/iMX6 with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_for_empc-a\/imx6:*:*:*:*:*:*:*:* | before 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control for IOT2000 with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_for_iot2000:*:*:*:*:*:*:*:* | before 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control for Linux with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_for_linux:*:*:*:*:*:*:*:* | before 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control for PFC100 with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_for_pfc100:*:*:*:*:*:*:*:* | before 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control for PFC200 with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_for_pfc200:*:*:*:*:*:*:*:* | before 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control for PLCnext with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_for_plcnext:*:*:*:*:*:*:*:* | before 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control for Raspberry Pi with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_for_raspberry_pi:*:*:*:*:*:*:*:* | before 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control RTE V3 with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_rte:*:*:*:*:*:*:*:* | 3.5.8.60 up to (excluding) 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control RTE V3 (for Beckhoff CX) with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_rte:*:*:*:*:*:beckhoff_cx:*:* | 3.5.8.60 up to (excluding) 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control Win V3 with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_win:*:*:*:*:*:*:*:* | 3.5.9.80 up to (excluding) 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS Control V3 Runtime System Toolkit with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:control_runtime_system_toolkit:*:*:*:*:*:*:*:* | 3.0 up to (excluding) 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS HMI V3 with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:hmi:*:*:*:*:*:*:*:* | 3.5.10.0 up to (excluding) 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS V3 Embedded Target Visu Toolkit with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:embedded_target_visu_toolkit:*:*:*:*:*:*:*:* | 3.0 up to (excluding) 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
| CODESYS V3 Remote Target Visu Toolkit with web server (CmpWebServer, CmpWebServerHandler) | cpe:2.3:a:codesys:remote_target_visu_toolkit:*:*:*:*:*:*:*:* | 3.0 up to (excluding) 3.5.15.40 (NVD); fixed in 3.5.15.40 (CODESYS Advisory 2020-03) |
What does this mean for affected devices?
NVD's description: "CODESYS V3 web server before 3.5.15.40, as used in CODESYS Control runtime systems, has a buffer overflow." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and CVSS v2 10.0, with CWE-787 (out-of-bounds write). NVD's CPE configuration covers fifteen CODESYS runtime and visualization products before 3.5.15.40. The record was published on 2020-03-26 (NVD).
Which CODESYS products and devices are affected?
CODESYS Advisory 2020-03 (version 3.0, 1 April 2020) explains that the web server is "an optional part of the CODESYS runtime system", so every CODESYS V3 runtime that contains CmpWebServer and CmpWebServerHandler before 3.5.15.40 is affected, regardless of CPU type or operating system. It lists Control for BeagleBone, emPC-A/iMX6, IOT2000, Linux, PLCnext, PFC100, PFC200 and Raspberry Pi, Control RTE V3 (also for Beckhoff CX), Control Win V3, HMI V3, the Control V3 Runtime System Toolkit and the Embedded and Remote Target Visu Toolkits. CODESYS rates it critical, with its own CVSS v3.0 score of 10.0 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H), higher than NVD's 9.8 because it scores a scope change: the web server runs inside the runtime, so a crash "may result in unforeseen behavior of the complete runtime system".
The Runtime System Toolkit is the part device makers build into PLC, panel and drive firmware, so any controller that offers browser-based WebVisu on an older CODESYS base is a candidate. Our CODESYS runtime vulnerabilities guide shows how to find the CODESYS version behind a vendor firmware number.
How does the overflow work?
Tenable reported it to CODESYS on 2019-12-11 and published TRA-2020-16 on 2020-03-25. Its analysis of CmpWebServerHandlerV3 (file version 3.5.15.20) shows that an unauthenticated, remote attacker can request a buffer of size 0xffffffff in a WEB_CLIENT_OPENCONNECTION message to the /WebVisuV3 endpoint; adding a fixed header size overflows the 32-bit length, the runtime allocates a tiny heap buffer, and a following WEB_CLIENT_RUN_SERVICE message copies attacker data past its end. Tenable published a proof of concept, and CODESYS updated its advisory on 1 April 2020 to state that a PoC is publicly available.
Unlike the authenticated protocol bugs CVE-2022-47378 and CVE-2022-47390, this flaw needs neither a login nor captured credentials such as those exposed by CVE-2019-9013: reaching the web port is enough.
How do you fix it?
CODESYS fixed it in 3.5.15.40 for all affected products; for devices with CODESYS inside, the fix arrives in the device vendor's firmware. CODESYS identified no specific workaround. Its general measures are to keep controllers off networks reachable from outside, separate the control network with firewalls, use VPNs for remote access and activate user management. Where a controller needs no browser HMI, ask the device vendor whether the web server can be left out or switched off; where it does, allow the web port only from the HMI clients.
CVE-2020-10245 is not in the CISA KEV catalog as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.02918, the 87th percentile, in the 2026-11-17 dataset (CISA KEV, FIRST EPSS).
Evidence
- NVD: CODESYS V3 web server before 3.5.15.40, as used in CODESYS Control runtime systems, has a buffer overflow; NVD Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, CVSS v2 10.0; CWE-787; 15 CODESYS CPEs before 3.5.15.40; published 2020-03-26. — NVD
- CODESYS Advisory 2020-03 v3.0 (1 April 2020): web server optional part of the runtime; all V3 runtimes with CmpWebServer and CmpWebServerHandler before 3.5.15.40 affected; heap-based buffer overflow; critical, CVSS v3.0 10.0 S:C; POC publicly available; fixed in 3.5.15.40; no specific workaround; reported by Tenable. — CODESYS Advisory 2020-03
- Tenable TRA-2020-16: heap overflow in CmpWebServerHandlerV3.dll 3.5.15.20 via /WebVisuV3; unauthenticated remote attacker; WEB_CLIENT_OPENCONNECTION with size -1 then WEB_CLIENT_RUN_SERVICE; vendor informed 2019-12-11; advisory released 2020-03-25; PoC on GitHub. — Tenable TRA-2020-16
- Not in the CISA KEV catalog, version 2026.11.17 (1,782 entries), checked 2026-11-18. — CISA KEV
- EPSS 0.02918, percentile 0.87262, dataset 2026-11-17. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which version fixes CVE-2020-10245?
CODESYS V3 3.5.15.40 and later, for every affected runtime and visualization product. On PLCs and panels that embed the CODESYS runtime, the fix comes in the device vendor's firmware (per CODESYS Advisory 2020-03 and NVD).
Does CVE-2020-10245 need a login?
No. Tenable describes an unauthenticated, remote attacker sending crafted WebVisu messages to the web server, and NVD's score has no privileges required. User management on the CODESYS protocol does not block it; the controls are the update and restricting access to the web port (per Tenable TRA-2020-16 and NVD).
Is a controller without WebVisu affected by CVE-2020-10245?
Only runtimes that contain the web server components CmpWebServer and CmpWebServerHandler are affected, and CODESYS calls the web server an optional part of the runtime. Check with the device vendor whether the firmware includes it and whether it is active (per CODESYS Advisory 2020-03).
Is CVE-2020-10245 in the CISA KEV catalog?
No, not as of 2026-11-18 (catalog version 2026.11.17), although a public proof of concept exists. FIRST EPSS gives it 0.02918, the 87th percentile, in the 2026-11-17 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?