CVE-2019-5181 Memory corruption in WAGO PFC200

High 7.8 Published Updated

A stack buffer overflow in the WAGO PFC200 iocheckd service allows remote attackers to execute arbitrary code or cause a denial of service via a crafted XML cache file.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2019-5181?

CVE-2019-5181 is a high-severity memory corruption vulnerability in WAGO PFC200, published on 11 Mar 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An exploitable stack buffer overflow vulnerability vulnerability exists in the iocheckd service ‘I/O-Check’ functionality of WAGO PFC 200 Firmware version 03.02.02(14). A specially crafted XML cache file written to a specific location on the device can cause a stack buffer overflow, resulting in code execution. An attacker can send a specially crafted packet to trigger the parsing of this cache file. The destination buffer sp+0x440 is overflowed with the call to sprintf() for any subnetmask values that are greater than 1024-len(‘/etc/config-tools/config_interfaces interface=X1 state=enabled subnet-mask=‘) in length. A subnetmask value of length 0x3d9 will cause the service to crash.

Weakness: CWE-787

Which versions are affected by CVE-2019-5181?

It affects 1 product.

Products include Wago Pfc200 Firmware.

How do I fix CVE-2019-5181?

No fix has been published for CVE-2019-5181 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-2019-5181 being exploited?

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

Sources

Also known as GHSA-r2jr-v83g-c59g.

Is CVE-2019-5181 in your software?

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

Check your SBOMs for free