Security Advisory

CVE-2021-25668: SCALANCE X-200 Web Server Heap Overflow

Last updated:
  • CVE-2021-25668

CVE-2021-25668 is a heap-based buffer overflow in the web server of Siemens SCALANCE X-200 and X-200IRT industrial Ethernet switches: an unauthenticated attacker who can reach the web interface sends a crafted POST request and can crash the switch or potentially run code on it. NVD and Siemens both score it 9.8 (CWE-122). Siemens fixes it in V5.2.5 and V5.5.1.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

1.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
SCALANCE X-200 switches: X204-2, X204-2FM, X204-2LD, X204-2LD TS, X204-2TS, X206-1, X206-1LD, X208, X208PRO, X212-2, X212-2LD, X216, X224, XF204, XF204-2, XF206-1, XF208 (incl. SIPLUS NET variants)cpe:2.3:o:siemens:scalance_x204-2_firmware:*:*:*:*:*:*:*:*All versions before V5.2.5; fixed in V5.2.5 (Siemens SSA-187092)
SCALANCE X-200IRT switches: X200-4P IRT, X201-3P IRT, X201-3P IRT PRO, X202-2 IRT, X202-2P IRT, X202-2P IRT PRO, X204 IRT, X204 IRT PRO, XF201-3P IRT, XF202-2P IRT, XF204 IRT, XF204-2BA IRT (incl. SIPLUS NET variant)cpe:2.3:o:siemens:scalance_x204_irt_firmware:*:*:*:*:*:*:*:*All versions before V5.5.1; fixed in V5.5.1 (Siemens SSA-187092)

What does this mean for affected devices?

NVD carries the Siemens description: "Incorrect processing of POST requests in the webserver may result in write out of bounds in heap. An attacker might leverage this to cause denial-of-service on the device and potentially remotely execute code." 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) with CWE-787; the Siemens CNA classes it CWE-122 (heap-based buffer overflow). The record was published on 2021-04-22 (NVD, CVE record).

How severe is CVE-2021-25668?

Siemens ProductCERT gives the same base score, CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C), in SSA-187092. The vector needs no privileges and no user interaction, so anyone who can open a connection to the switch's web server on 80/tcp or 443/tcp is in a position to try it. The temporal part, exploit code maturity "proof of concept", is Siemens' own assessment. CISA republished the advisory as ICSA-21-103-07 with the same 9.8.

Which switches are affected?

Product line (Siemens wording) Affected Fixed
SCALANCE X-200: X204-2, X204-2FM, X204-2LD, X204-2LD TS, X204-2TS, X206-1, X206-1LD, X208, X208PRO, X212-2, X212-2LD, X216, X224, XF204, XF204-2, XF206-1, XF208 before V5.2.5 V5.2.5
SCALANCE X-200IRT: X200-4P IRT, X201-3P IRT (and PRO), X202-2 IRT, X202-2P IRT (and PRO), X204 IRT (and PRO), XF201-3P IRT, XF202-2P IRT, XF204 IRT, XF204-2BA IRT before V5.5.1 V5.5.1

SIPLUS NET variants of the X202-2P IRT, X204-2, X204-2LD, X208, X212-2 and XF204-2 are included. SSA-187092 was published on 2021-04-13 with a fix for the IRT models only; version 1.1 of 2021-09-14 added V5.2.5 for the X-200 line. NVD's CPE list matches these 29 models and fixed versions. The same advisory carries the stack-based twin CVE-2021-25669, and both are closed by the same update.

How do you fix or mitigate it?

Update X-200 switches to V5.2.5 or later and X-200IRT switches to V5.5.1 or later. Until then, Siemens' mitigation is to limit traffic to the web server to trusted connections with firewall rules on 443/tcp and 80/tcp. On these switches the web server is the web-based management (WBM) interface, so restrict it to the engineering workstation. CVE-2019-10942 hits the Telnet service of the same switch families, and CVE-2019-13933 the WBM of the related X-200RNA and X-300 switches. Our SCALANCE and RUGGEDCOM vulnerability guide covers the whole product range, and the memory corruption fix guide explains this class of bug in firmware.

CVE-2021-25668 is not in the CISA KEV catalog as of 2026-11-21 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.01741, the 78.3rd percentile, in the 2026-11-20 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-21): status Modified; published 2021-04-22; 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 (NVD), CWE-122 (Siemens); CPE: 17 X-200 models before 5.2.5 and 12 X-200IRT models before 5.5.1; reference SSA-187092. — NVD
  • Siemens SSA-187092 V1.1 (published 2021-04-13, updated 2021-09-14), CSAF read 2026-11-21: CVE-2021-25668 heap-based buffer overflow (CWE-122) from incorrect processing of POST requests in the web server; CVSS v3.1 9.8 with E:P/RL:O/RC:C; fixes V5.2.5 for 17 X-200 models and V5.5.1 for 12 X-200IRT models; mitigation: limit web server traffic to trusted connections by firewall rules on 443/tcp and 80/tcp. — Siemens ProductCERT SSA-187092
  • CISA ICSA-21-103-07 CSAF (Update A, current release 2025-05-06), read 2026-11-21: CVE-2021-25668 CWE-122, CVSS v3.1 9.8; SCALANCE X200 web server. — CISA CSAF ICSA-21-103-07
  • CVE record (checked 2026-11-21): state PUBLISHED, CNA Siemens, published 2021-04-22; CNA CWE-122; no CNA CVSS metric in the record. — CVE.org
  • Not in the CISA KEV catalog, version 2026.11.20 (1,790 entries), checked 2026-11-21. — CISA KEV
  • EPSS 0.01741, percentile 0.78305, dataset 2026-11-20, read 2026-11-21. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-187092: Several Buffer-Overflow Vulnerabilities in Web Server of SCALANCE X-200
  3. Siemens ProductCERT SSA-187092 (CSAF)
  4. CISA CSAF: ICSA-21-103-07 Siemens Web Server of SCALANCE X200 (machine-readable advisory)
  5. CVE.org record CVE-2021-25668 (CNA: Siemens)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which firmware fixes CVE-2021-25668?

V5.2.5 for the SCALANCE X-200 switches (X204-2 to X224, XF204 to XF208) and V5.5.1 for the X-200IRT switches (X200-4P IRT to XF204-2BA IRT), including the SIPLUS NET variants (per Siemens SSA-187092).

Does an attacker need a password?

No. Both Siemens and NVD score it with no privileges and no user interaction required: a crafted POST request to the web server is enough. Network access to the web interface on 80/tcp or 443/tcp is the only precondition (per NVD and Siemens SSA-187092).

What can I do before I can update?

Siemens recommends limiting traffic to the web servers of SCALANCE X switches to trusted connections with firewall rules on 443/tcp and 80/tcp (per SSA-187092). In practice, allow only the engineering workstation to reach the switch management interface.

How is it related to CVE-2021-25669?

Both are memory corruption bugs in the processing of POST requests by the same web server and are listed in the same Siemens advisory with the same products and fixes. CVE-2021-25668 overflows the heap (CWE-122), CVE-2021-25669 the stack (CWE-121).