RCE in Wago Pfc 200

CVE-2019-5167

An exploitable command injection vulnerability exists in the iocheckd service ‘I/O-Check’ function of the WAGO PFC 200 version 03.02.02(14). At 0x1e3f0 the extracted dns value from the xml file is used as an argument to /etc/config-tools/edit_dns_server %s dns-server-nr=%d dns-server-name=<contents of dns node> using sprintf(). This command is later executed via a call to system(). This is done in a loop and there is no limit to how many dns entries will be parsed from the xml file.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.012 (66.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2019-5167?
CVE-2019-5167 is a high-severity vulnerability in Wago Pfc 200, classified under OS Command Injection. CVSS score: 7.8/10. Published 2020-03-11.
How severe is CVE-2019-5167?
High severity. CVSS v3 base score is 7.8 out of 10.