Security Advisory

CVE-2021-25667: SCALANCE STP BPDU Stack Overflow

Last updated:
  • CVE-2021-25667

CVE-2021-25667 is a stack-based buffer overflow in the handling of STP BPDU frames in Siemens SCALANCE switches, routers and the RUGGEDCOM RM1224: an attacker on the same layer 2 network can crash the device or potentially run code on it, but only while the STP passive listening feature is active. NVD and Siemens score it 8.8 (CWE-121). Siemens lists fixed firmware per product line.

Vulnerability summary

CVSS base score

8.8

High severity

EPSS score (FIRST)

0.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
RUGGEDCOM RM1224, SCALANCE M-800, SCALANCE S615cpe:2.3:o:siemens:scalance_m-800_firmware:*:*:*:*:*:*:*:*V4.3 and later before V6.4; fixed in V6.4 (Siemens SSA-979775)
SCALANCE SC-600 Familycpe:2.3:o:siemens:scalance_sc-600_firmware:*:*:*:*:*:*:*:*V2.0 and later before V2.1.3; fixed in V2.1.3 (Siemens SSA-979775)
SCALANCE XB-200, XC-200, XF-200BA, XP-200, XR-300WGcpe:2.3:o:siemens:scalance_xb-200_firmware:*:*:*:*:*:*:*:*All versions before V4.1; fixed in V4.1 (Siemens SSA-979775)
SCALANCE XM400, SCALANCE XR500cpe:2.3:o:siemens:scalance_xm400_firmware:*:*:*:*:*:*:*:*All versions before V6.2; fixed in V6.2 (Siemens SSA-979775)

What does this mean for affected devices?

NVD carries the Siemens description: "Affected devices contain a stack-based buffer overflow vulnerability in the handling of STP BPDU frames that could allow a remote attacker to trigger a denial-of-service condition or potentially remote code execution. Successful exploitation requires the passive listening feature of the device to be active." NVD's Primary score is CVSS v3.1 8.8 (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) with CWE-787; the Siemens CNA classes it CWE-121 (stack-based buffer overflow). The record was published on 2021-03-15 (NVD, CVE record).

How severe is CVE-2021-25667?

Siemens ProductCERT gives the same base score, CVSS v3.1 8.8 (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C), in SSA-979775. The attack vector is adjacent: the attacker needs to send BPDU frames on the same layer 2 segment as the device. The CVE record also carries a CISA ADP score of 6.5 (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), which counts only the denial of service; NVD shows it as Secondary. CISA republished the Siemens advisory as ICSA-21-068-03 with the 8.8 score. In Siemens' summary, the result is a reboot of the device or, "under specific circumstances", remote code execution.

Which devices are affected?

Product (Siemens wording) Affected Fixed
RUGGEDCOM RM1224, SCALANCE M-800, SCALANCE S615 V4.3 to before V6.4 V6.4
SCALANCE SC-600 Family V2.0 to before V2.1.3 V2.1.3
SCALANCE XB-200, XC-200, XF-200BA, XP-200, XR-300WG before V4.1 V4.1
SCALANCE XM400, SCALANCE XR500 before V6.2 V6.2

SSA-979775 was published on 2021-03-09; the update of 2021-04-13 added the fix for M-800, S615 and RM1224 and changed the fix for the XR-300WG. NVD's CPE entries follow the same ranges (for example scalance_m-800_firmware from 4.3 up to 6.4, scalance_xm400_firmware before 6.2).

How do you fix or mitigate it?

Update to the fixed version for each product line. Siemens' mitigation for every affected device is to deactivate the STP passive listening feature; the overflow needs that feature to be active. Since BPDU frames come from the local segment, also keep untrusted hosts off the switch's layer 2 network. Other layer 2 flaws in Siemens network devices include the PROFINET DCP denial of service CVE-2017-2681 and CVE-2020-28400. Our SCALANCE and RUGGEDCOM vulnerability guide explains why layer 2 entries need more than a firewall, and the memory corruption fix guide covers the bug class.

CVE-2021-25667 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.00945, the 61.9th 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-03-15; NVD Primary CVSS v3.1 8.8 CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, v2 5.8; CISA-ADP Secondary 6.5 CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; CWE-787 (NVD), CWE-121 (Siemens); CPE ranges for RM1224, M-800, S615 (4.3 to before 6.4), SC-600, XB-200 family and XR-300WG (before 4.1), XM400 and XR500 (before 6.2). — NVD
  • Siemens SSA-979775 V1.1 (published 2021-03-09, updated 2021-04-13), CSAF read 2026-11-21: CVE-2021-25667 stack-based buffer overflow in STP BPDU handling, CWE-121, CVSS v3.1 8.8 with E:P/RL:O/RC:C; exploitation requires passive listening to be active; fixes V6.4 (RM1224, M-800, S615), V2.1.3 (SC-600), V4.1 (XB-200, XC-200, XF-200BA, XP-200, XR-300WG), V6.2 (XM400, XR500); mitigation: deactivate the STP passive listening feature. — Siemens ProductCERT SSA-979775
  • CISA ICSA-21-068-03 CSAF (Update A, current release 2025-05-06), read 2026-11-21: CVE-2021-25667 CWE-121, CVSS v3.1 8.8. — CISA CSAF ICSA-21-068-03
  • CVE record (checked 2026-11-21): state PUBLISHED, CNA Siemens, published 2021-03-15; CNA CWE-121; CISA-ADP container present. — CVE.org
  • Not in the CISA KEV catalog, version 2026.11.20 (1,790 entries), checked 2026-11-21. — CISA KEV
  • EPSS 0.00945, percentile 0.61946, dataset 2026-11-20, read 2026-11-21. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-979775: Stack Overflow Vulnerability in SCALANCE and RUGGEDCOM Devices
  3. Siemens ProductCERT SSA-979775 (CSAF)
  4. CISA CSAF: ICSA-21-068-03 Siemens SCALANCE and RUGGEDCOM Devices (machine-readable advisory)
  5. CVE.org record CVE-2021-25667 (CNA: Siemens)
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which firmware fixes CVE-2021-25667?

V6.4 for RUGGEDCOM RM1224, SCALANCE M-800 and S615; V2.1.3 for the SC-600 family; V4.1 for XB-200, XC-200, XF-200BA, XP-200 and XR-300WG; V6.2 for XM400 and XR500 (per Siemens SSA-979775).

Is my device vulnerable if STP passive listening is off?

Siemens and NVD state that successful exploitation requires the passive listening feature to be active, and Siemens lists deactivating it as the mitigation for every affected product (per SSA-979775). Updating is still the fix.

Can someone exploit it from the internet?

No. Siemens and NVD score the attack vector as adjacent network: the attacker has to send STP BPDU frames on the same layer 2 segment as the device. Control who can connect to that segment, and deactivate passive listening until the update is in.

Why does the CVE record show a 6.5 score as well?

The CISA ADP container in the CVE record scores only the denial of service (availability high, no confidentiality or integrity impact) at 6.5. NVD shows it as a Secondary metric; NVD's Primary score and the Siemens score are both 8.8.