// For flags

CVE-2022-29842

Command Injection Vulnerability in Western Digital My Cloud devices

Severity Score

9.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

Improper Neutralization of Special Elements used in a Command ('Command Injection') vulnerability that could allow an attacker to execute code in the context of the root user on a vulnerable CGI file was discovered in Western Digital My Cloud OS 5 devicesThis issue affects My Cloud OS 5: before 5.26.119.

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Western Digital MyCloud PR4100 NAS devices. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the account_mgr cgi script. 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.

*Credits: Sam Thomas (@_s_n_t) of Pentest Ltd (@pentestltd) working with Trend Micro’s Zero Day Initiative
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2022-04-27 CVE Reserved
  • 2023-05-10 CVE Published
  • 2024-06-11 EPSS Updated
  • 2024-08-03 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud
Search vendor "Westerndigital" for product "My Cloud"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud Dl2100
Search vendor "Westerndigital" for product "My Cloud Dl2100"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud Dl4100
Search vendor "Westerndigital" for product "My Cloud Dl4100"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud Ex2 Ultra
Search vendor "Westerndigital" for product "My Cloud Ex2 Ultra"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud Ex2100
Search vendor "Westerndigital" for product "My Cloud Ex2100"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud Ex4100
Search vendor "Westerndigital" for product "My Cloud Ex4100"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud Mirror G2
Search vendor "Westerndigital" for product "My Cloud Mirror G2"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud Pr2100
Search vendor "Westerndigital" for product "My Cloud Pr2100"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
My Cloud Pr4100
Search vendor "Westerndigital" for product "My Cloud Pr4100"
--
Safe
Westerndigital
Search vendor "Westerndigital"
My Cloud Os
Search vendor "Westerndigital" for product "My Cloud Os"
>= 5.02.104 < 5.26.119
Search vendor "Westerndigital" for product "My Cloud Os" and version " >= 5.02.104 < 5.26.119"
-
Affected
in Westerndigital
Search vendor "Westerndigital"
Wd Cloud
Search vendor "Westerndigital" for product "Wd Cloud"
--
Safe