Security Advisory

CVE-2021-33485: CODESYS V3 Web Server Heap Overflow

Last updated:
  • CVE-2021-33485

CVE-2021-33485 is a heap-based buffer overflow in the CODESYS V3 web server, the component that serves WebVisu screens, before V3.5.17.10. A crafted request without login can crash the runtime or lead to remote code execution. WAGO PFC100, PFC200, CC100 and Touch Panel 600 firmware carry it until FW22 (03.10.08 or 03.10.09). NVD scores it 9.8.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

1.4%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2021-33485 · Source: NVD

Affected components

ComponentCPEVersion range
WAGO PFC100 750-8100, 750-8101, 750-8102—up to and including 03.09.05 (21); fixed in 03.10.08 (22) (CERT@VDE VDE-2022-035; no WAGO CPE in NVD)
WAGO PFC200 750-8202 to 750-8216—up to and including 03.09.05 (21); fixed in 03.10.08 (22) (CERT@VDE VDE-2022-035; no WAGO CPE in NVD)
WAGO Compact Controller CC100 751-9301—up to and including 03.09.07 (21); fixed in 03.10.09 (22) (CERT@VDE VDE-2022-035; no WAGO CPE in NVD)
WAGO Touch Panel 600 (762-4x0x, 762-5x0x, 762-6x0x)—up to and including 03.07.14 (19); fixed in 03.10.09 (22) (CERT@VDE VDE-2022-035; no WAGO CPE in NVD)
WAGO Edge Controller EC300 752-8303/8000-0002—up to and including 03.07.14 (19) (CERT@VDE VDE-2022-035 names no separate fixed version)
CODESYS V3 runtimes with CmpWebServer (Control RTE, Control Win, HMI, Runtime System Toolkit, Embedded and Remote Target Visu Toolkit)cpe:2.3:a:codesys:control_runtime_system_toolkit:*:*:*:*:*:*:*:*before V3.5.17.10; fixed in V3.5.16.50 and V3.5.17.10 (CODESYS Advisory 2021-09, NVD before 3.5.17.10)
CODESYS Control for PFC100 SL, PFC200 SL and WAGO Touch Panels 600 SLcpe:2.3:a:codesys:control:*:*:*:*:*:pfc200_sl:*:*before V4.2.0.0; fixed in V4.2.0.0 (CODESYS Advisory 2021-09, NVD before 4.2.0.0)

What does this mean for affected devices?

NVD's description reads: "CODESYS Control Runtime system before 3.5.17.10 has a Heap-based Buffer Overflow." NVD scores it CVSS v3.1 9.8 Primary (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, v2 7.5) with CWE-787; CISA-ADP adds the same 9.8 and CWE-122. The record dates from 2021-08-03 (NVD, CVE record).

Where is the bug?

CODESYS Advisory 2021-09 (published 30 August 2021) places it in CmpWebServer, the optional web server that the CODESYS WebVisu uses to show visualisation screens in a browser. "Specific crafted requests may cause a heap-based buffer overflow", which could crash the web server, cause a denial of service "or may be utilized for remote code execution". Because the web server runs inside the runtime, CODESYS warns of "unforeseen behavior of the complete runtime system". It rates the flaw Critical at 9.8 and notes that existing security scanners may already harm affected products. The fix is V3.5.16.50 or V3.5.17.10 for the V3 runtimes, and V4.2.0.0 for the SL packages, among them CODESYS Control for PFC100 SL, PFC200 SL and WAGO Touch Panels 600 SL. The Device Security Assurance Center of ABB reported it. NVD's CPE list carries only CODESYS products, and its Linux SL row includes 4.2.0.0 itself although the advisory calls that the fixed version.

Which WAGO devices are affected?

WAGO's VDE-2022-035, released on 2022-08-17 (CSAF), lists PFC100 and PFC200 up to firmware 03.09.05 (21), CC100 up to 03.09.07 (21), and the Touch Panel 600 and Edge Controller EC300 up to 03.07.14 (19). WAGO tells PFC100 and PFC200 users to install 03.10.08 (22) or later, and TP600 and CC100 users 03.10.09 (22) or later. The same advisory bundles the WebVisu file read CVE-2021-36763.

What should operators do?

Update to FW22 or later. CODESYS lists no workaround, so until the update, keep the controller web server unreachable from every network that does not need it, keep controllers behind a firewall, and use a VPN for remote access, as the CODESYS general defense measures in both advisories say. Later CODESYS V3 runtime flaws on the same devices include CVE-2022-47390 and CVE-2022-47378. See the WAGO PFC controller guide, the CODESYS runtime guide and the memory corruption fix guide.

CVE-2021-33485 is not in the CISA KEV catalog as of 2026-11-23 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.0136, the 72.4th percentile, in the 2026-11-22 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD (read 2026-11-23): status Modified; published 2021-08-03; NVD Primary CVSS v3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, v2 7.5, CWE-787; CISA-ADP Secondary 9.8, CWE-122; CPE CODESYS V3 runtimes before 3.5.17.10, SL products before 4.2.0.0 (Linux SL up to and including 4.2.0.0); no WAGO CPE. — NVD
  • CODESYS Advisory 2021-09 (published 30 August 2021): CWE-122 heap overflow in CmpWebServer before V3.5.17.10, DoS or remote code execution; CVSS v3.0 9.8 Critical; fixed in V3.5.16.50 and V3.5.17.10, SL products in V4.2.0.0 (incl. PFC100 SL, PFC200 SL, WAGO Touch Panels 600 SL); no workaround; reported by ABB Device Security Assurance Center. — CODESYS Advisory 2021-09
  • CERT@VDE VDE-2022-035 (released 2022-08-17), HTML and CSAF read 2026-11-23: CVE-2021-33485 CVSS 9.8 CWE-787; known affected CC100 <=03.09.07(21), EC300 <=03.07.14(19), PFC100/PFC200 <=03.09.05(21), TP600 <=03.07.14(19); update PFC100/PFC200 to 03.10.08(22), TP600/CC100 to 03.10.09(22). — CERT@VDE VDE-2022-035
  • CVE record (checked 2026-11-23): state PUBLISHED, assigner MITRE, published 2021-08-03. — CVE.org
  • Not in the CISA KEV catalog, catalog version 2026.11.20, 1,790 entries, checked 2026-11-23. — CISA KEV
  • EPSS 0.0136, percentile 0.72441, dataset 2026-11-22, read 2026-11-23. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CERT@VDE VDE-2022-035: WAGO multiple product series affected by multiple CODESYS vulnerabilities
  3. CERT@VDE VDE-2022-035 CSAF (machine-readable advisory)
  4. CODESYS Advisory 2021-09: Security update for CODESYS V3 web server
  5. CVE.org record CVE-2021-33485
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which WAGO firmware fixes CVE-2021-33485?

03.10.08 (22) or later for PFC100 and PFC200, and 03.10.09 (22) or later for Touch Panel 600 and CC100 (CERT@VDE VDE-2022-035).

Is the controller affected if WebVisu is not used?

The flaw sits in CmpWebServer, the optional web server used by WebVisu. CODESYS says all V3 runtimes containing that component before V3.5.17.10 are affected, so check whether the web server is present and reachable rather than whether a visualisation is in use.

Is there a workaround?

CODESYS Advisory 2021-09 names none. Its general measures apply: keep controllers in a protected network, use firewalls and VPNs, and limit access to the runtime.

Is CVE-2021-33485 in the CISA KEV catalog?

No, not as of 2026-11-23 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS rates it 0.0136 (72.4th percentile) in the 2026-11-22 dataset.