Security Advisory

CVE-2021-31895: RUGGEDCOM ROS DHCP Client Overflow

Last updated:
  • CVE-2021-31895

CVE-2021-31895 is a buffer overflow in the DHCP client of Siemens RUGGEDCOM ROS switches and serial devices: a crafted DHCP packet from the network can overwrite memory and potentially lead to code execution, with no login needed. Siemens scores it 8.1 and fixes it in ROS V4.3.7 and V5.5.4. DHCP snooping or a static IP address mitigates it.

Vulnerability summary

CVSS base score

7.5

High severity

EPSS score (FIRST)

2.2%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

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

Affected components

ComponentCPEVersion range
RUGGEDCOM ROS V4.x devices: i800, i801, i802, i803, M969, M2100, M2200, RMC30, RMC8388 V4.X, RP110, RS400, RS401, RS416, RS416P, RS416v2 V4.X, RS416Pv2 V4.X, RS1600, RS1600F, RS1600T, RS8000, RS8000A, RS8000H, RS8000T, RS900 (32M) V4.X, RS900G, RS900GP, RS900L, RS900W, RS910, RS920, RS930, RS940G, RS969, RSG2100, RSG2100P, RSG2200, RSG2288 V4.X, RSG2300 V4.X, RSG2300P V4.X, RSG2488 V4.X, RSG920P V4.Xcpe:2.3:o:siemens:ruggedcom_ros_rsg2288:*:*:*:*:*:*:*:*All versions before V4.3.7; fixed in V4.3.7 (Siemens SSA-373591)
RUGGEDCOM ROS V5.x devices: RMC8388 V5.X, RS416v2 V5.X, RS416Pv2 V5.X, RS900 (32M) V5.X, RS900G (32M) V5.X, RSG2100 (32M) V5.X, RSG2100P (32M) V5.X, RSG2288 V5.X, RSG2300 V5.X, RSG2300P V5.X, RSG2488 V5.X, RSG907R, RSG908C, RSG909R, RSG910C, RSG920P V5.X, RSL910, RST2228, RST2228P, RST916C, RST916Pcpe:2.3:o:siemens:ruggedcom_ros_rsg2288:*:*:*:*:*:*:*:*All versions before V5.5.4; fixed in V5.5.4 (Siemens SSA-373591)

What does this mean for affected devices?

NVD carries the Siemens description of 69 affected RUGGEDCOM models. In Siemens' words, "the DHCP client in affected devices fails to properly sanitize incoming DHCP packets. This could allow an unauthenticated remote attacker to cause memory to be overwritten, potentially allowing remote code execution." The record was published on 2021-07-13 (NVD, CVE record).

How severe is CVE-2021-31895?

The scores differ, so read the vectors:

Scorer Score Vector NVD label
NVD CVSS v2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P Primary
NVD CVSS v3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Secondary
Siemens (CNA) CVSS v3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C Secondary

NVD classes the flaw CWE-787 (out-of-bounds write); Siemens classes it CWE-120 (classic buffer overflow). Siemens rates attack complexity high where NVD rates it low; both agree that no privileges or user interaction are needed. DHCP traffic stays within a broadcast domain unless a relay forwards it, so the realistic attacker is a host on the same segment or a compromised DHCP server or relay. Siemens' temporal metric E:F means it rates the exploit code as functional, not just a proof of concept (Siemens SSA-373591).

CVE-2021-31895 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.02195, the 82.9th percentile, in the 2026-11-20 dataset (CISA KEV, FIRST EPSS).

Which RUGGEDCOM devices are affected?

Line (Siemens wording) Fixed
ROS V4.x: i800 to i803, M969, M2100, M2200, RMC30, RP110, RS400, RS401, RS416, RS416P, RS1600 family, RS8000 family, RS900G, RS900L, RS910, RS940G, RS969, RSG2100, RSG2200, RSG2288/RSG2300/RSG2488 V4.X and others V4.3.7
ROS V5.x: RMC8388 V5.X, RS416v2 V5.X, RS900 (32M) V5.X, RSG2100 (32M) V5.X, RSG2288/RSG2300/RSG2488 V5.X, RSG907R, RSG908C, RSG909R, RSG910C, RSL910, RST2228, RST916C/P V5.5.4

The advisory has changed since 2021. Version 1.1 of 2025-05-13 added the RS416P, RS416Pv2, RS1600 family, RST2228P and RSG2100PNC (32M) as affected. It also removed the RMC, RMC20, RMC40, RMC41, RSG900 and RSG900G models as not affected. Version 1.2 of 2025-10-14 added the fix for the RSG2100. NVD's CPE list still includes ruggedcom_ros_rmc20, so use the Siemens list, not the CPE list, to decide which units need the update (Siemens SSA-373591 CSAF).

How do you fix or mitigate it?

Update ROS V4.x devices to V4.3.7 or later and ROS V5.x devices to V5.5.4 or later. Until then, Siemens gives two measures for all 69 models:

  • enable DHCP snooping, so the device only accepts DHCP traffic from trusted DHCP servers
  • disable DHCP and give the device a static IP address

In a substation or traffic-control network, a static management address is often the simpler choice.

The same ROS device families are hit by the mirror-port flaw CVE-2023-24845 and, on old firmware, the factory account CVE-2012-1803. Our SCALANCE and RUGGEDCOM vulnerability guide covers the whole range, and the memory corruption fix guide explains this class of bug.

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-07-13; NVD Primary metric CVSS v2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P; NVD CVSS v3.1 9.8 labelled Secondary; Siemens Secondary 8.1; CWE-787 (NVD), CWE-120 (Siemens); 65 CPE entries for ruggedcom_ros_* firmware before 4.3.7 or 5.5.4, including ruggedcom_ros_rmc20. — NVD
  • Siemens SSA-373591 version 1.2 (published 2021-07-13, updated 2025-10-14), read 2026-11-21: DHCP client fails to sanitize incoming DHCP packets; CVSS v3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C, CWE-120; 69 affected products; fixes V4.3.7 and V5.5.4; mitigation DHCP snooping; workaround disable DHCP and configure a static IP; V1.1 (2025-05-13) added RS416P, RS416Pv2, RS1600 family, RST2228P and RSG2100PNC (32M), removed RMC, RMC20, RMC40, RMC41, RSG900, RSG900G, RSG900C, RSG900R as not affected; V1.2 (2025-10-14) added the fix for RSG2100. — Siemens ProductCERT SSA-373591
  • CVE record (checked 2026-11-21): state PUBLISHED, CNA Siemens, published 2021-07-13; CWE-120; CNA CVSS v3.1 8.1. — CVE.org
  • Not in the CISA KEV catalog, version 2026.11.20 (1,790 entries), checked 2026-11-21. — CISA KEV
  • EPSS 0.02195, percentile 0.82917, dataset 2026-11-20, read 2026-11-21. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Siemens ProductCERT SSA-373591: Buffer Overflow Vulnerability in RUGGEDCOM ROS Devices
  3. Siemens ProductCERT SSA-373591 (CSAF)
  4. CVE.org record CVE-2021-31895 (CNA: Siemens)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which ROS versions fix CVE-2021-31895?

ROS V4.3.7 for devices on the V4.x line and ROS V5.5.4 for devices on the V5.x line, per Siemens SSA-373591. The RSG2100 fix was added to the advisory on 2025-10-14.

Is it 9.8 or 8.1?

Both numbers appear on NVD, but NVD labels its own v3.1 9.8 as Secondary. The Primary metric NVD shows is CVSS v2 7.5. Siemens scores 8.1 because it rates attack complexity high. Use the vector that matches your network.

How do I mitigate it without a firmware update?

Siemens gives two options: enable DHCP snooping so that only trusted DHCP servers can answer, or disable DHCP on the device and set a static IP address. Siemens lists both for all 69 affected models.

Did the list of affected devices change?

Yes. In May 2025 Siemens added the RS416P, RS416Pv2, RS1600 family, RST2228P and RSG2100PNC (32M), and removed the RMC, RMC20, RMC40, RMC41, RSG900 and RSG900G models as not affected. Re-check older asset lists against the current advisory.