CVE-2022-29842 in Westerndigital My Cloud Os 5 and 11 more products
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.
Affects 12 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Westerndigital | My Cloud Os 5 | < 5.26.119 ≥ 5.02.104, < 5.26.119 |
| Westerndigital | My Cloud Os | ≥ 5.02.104, < 5.26.119 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Westerndigital My Cloud Pr4100, Westerndigital My Cloud, Westerndigital My Cloud Ex2 Ultra, Westerndigital My Cloud Ex2100, Westerndigital My Cloud Ex4100, Westerndigital My Cloud Dl2100, Westerndigital My Cloud Dl4100, Westerndigital My Cloud Pr2100, Westerndigital Wd Cloud, Westerndigital My Cloud Mirror G2
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-29842 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-317600-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-05-10 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-77: Command Injection
Attacker injects operating system commands through application inputs passed to a shell or system call.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77
CAPEC-76 Manipulating Web Input to File System Calls via CWE-77
CAPEC-15 Command Delimiters via CWE-77
CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77
CAPEC-75 Manipulating Writeable Configuration Files via CWE-77
Show all 8
CAPEC-136 LDAP Injection via CWE-77
CAPEC-183 IMAP/SMTP Command Injection via CWE-77
CAPEC-248 Command Injection via CWE-77
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A critical command injection vulnerability (CVE-2022-29842) in Western Digital My Cloud OS 5 devices allows attackers to execute code as the root user, affecting versions before 5.26.119.
The vulnerability arises from improper neutralization of special elements used in a command within a CGI file, enabling an attacker to inject malicious commands that are executed with root privileges.
Questions
What is CVE-2022-29842?
A critical command injection vulnerability (CVE-2022-29842) in Western Digital My Cloud OS 5 devices allows attackers to execute code as the root user, affecting versions before 5.26.119.
What is the CVSS score for CVE-2022-29842?
CVE-2022-29842 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.7%.
Is CVE-2022-29842 actively exploited?
No confirmed active exploitation of CVE-2022-29842 as of 2026-09-25.
How do I remediate CVE-2022-29842?
Priority: IMMEDIATE. Advisory: https://www.westerndigital.com/support/product-security/wdc-23002-my-cloud-firmware-version-5-26-119 PSIRT: [email protected]
What systems are affected by CVE-2022-29842?
CVE-2022-29842 affects Westerndigital My Cloud Os 5, My Cloud Os.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Westerndigital","product":"My Cloud Os 5","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.