Western Digital MyCloud PR4100 CGI API Command Injection Remote Code Execution Vulnerability
August 9th, 2023
Vulnerability Details
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of the Western Digital MyCloud PR4100 NAS device. Authentication is required to exploit this vulnerability.
The specific flaw exists within the CGI API. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of root.
Additional Details
Fixed in My Cloud Firmware Version 5.26.119
Disclosure Timeline
- 2022-12-02 - Vulnerability reported to vendor
- 2023-08-09 - Coordinated public release of advisory
Credit
Claroty Research - Vera Mens, Noam Moshe, Uri Katz, Sharon Brizinov