CVE-2021-25668 Memory corruption in SCALANCE X200-4P IRT

Critical 9.8 Published Updated

Incorrect POST request processing in Siemens SCALANCE switches allows heap out-of-bounds writes, enabling remote code execution or denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-25668?

CVE-2021-25668 is a critical memory corruption vulnerability in Siemens SCALANCE X200-4P IRT, published on 22 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability has been identified in SCALANCE X200-4P IRT (All versions < 5.5.1), SCALANCE X201-3P IRT (All versions < 5.5.1), SCALANCE X201-3P IRT PRO (All versions < 5.5.1), SCALANCE X202-2 IRT (All versions < 5.5.1), SCALANCE X202-2P IRT (incl. SIPLUS NET variant) (All versions < 5.5.1), SCALANCE X202-2P IRT PRO (All versions < 5.5.1), SCALANCE X204 IRT (All versions < 5.5.1), SCALANCE X204 IRT PRO (All versions < 5.5.1), SCALANCE X204-2 (incl. SIPLUS NET variant) (All versions < V5.2.5), SCALANCE X204-2FM (All versions < V5.2.5), SCALANCE X204-2LD (incl. SIPLUS NET variant) (All versions < V5.2.5), SCALANCE X204-2LD TS (All versions < V5.2.5), SCALANCE X204-2TS (All versions < V5.2.5), SCALANCE X206-1 (All versions < V5.2.5), SCALANCE X206-1LD (All versions < V5.2.5), SCALANCE X208 (incl. SIPLUS NET variant) (All versions < V5.2.5), SCALANCE X208PRO (All versions < V5.2.5), SCALANCE X212-2 (incl. SIPLUS NET variant) (All versions < V5.2.5), SCALANCE X212-2LD (All versions < V5.2.5), SCALANCE X216 (All versions < V5.2.5), SCALANCE X224 (All versions < V5.2.5), SCALANCE XF201-3P IRT (All versions < 5.5.1), SCALANCE XF202-2P IRT (All versions < 5.5.1), SCALANCE XF204 (All versions < V5.2.5), SCALANCE XF204 IRT (All versions < 5.5.1), SCALANCE XF204-2 (incl. SIPLUS NET variant) (All versions < V5.2.5), SCALANCE XF204-2BA IRT (All versions < 5.5.1), SCALANCE XF206-1 (All versions < V5.2.5), SCALANCE XF208 (All versions < V5.2.5). 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.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2021-25668?

It affects 29 products.

Products include Siemens Scalance X200-4p Irt Firmware, Siemens Scalance X201-3p Irt Firmware, Siemens Scalance X201-3p Irt Pro Firmware, Siemens Scalance X202-2 Irt Firmware, Siemens Scalance X202-2p Irt Firmware, Siemens Scalance X202-2p Irt Pro Firmware and 23 more.

How do I fix CVE-2021-25668?

No fix has been published for CVE-2021-25668 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-25668 being exploited?

There is no known exploitation of CVE-2021-25668 in the wild and no public exploit code.

Sources

Also known as GHSA-6c9x-5xpr-57p9.

Is CVE-2021-25668 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free