CVE-2022-24989 in Terra-Master Terramaster Operating System and 29 more products
TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via the raidtype and diskstring parameters for PHP Object Instantiation to the api.php?mobile/createRaid URI. (Shell metacharacters can be placed in raidtype because popen is used without any sanitization.) The credentials f...
Affects 30 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 |
|---|---|---|
| Terra-Master | Terramaster Operating System | < 4.2.31 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Terra-Master F2-210, Terra-Master F2-221, Terra-Master F2-223, Terra-Master F2-422, Terra-Master F2-423, Terra-Master F4-421, Terra-Master F4-422, Terra-Master F4-423, Terra-Master F5-221, Terra-Master F5-422, Terra-Master T12-423, Terra-Master T12-450, Terra-Master T6-423, Terra-Master T9-423, Terra-Master T9-450, Terra-Master U12-322-9100, Terra-Master U12-423, Terra-Master U12-722-2224, Terra-Master U16-322-9100, Terra-Master U16-722-2224, Terra-Master U24-722-2224, Terra-Master U4-111, Terra-Master U4-211, Terra-Master U4-423, Terra-Master U8-111, Terra-Master U8-322-9100, Terra-Master U8-423, Terra-Master U8-522-9400, Terra-Master U8-722-2224
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
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via the raidtype and diskstring parameters for PHP Object Instantiation to the api.php?mobile/createRaid URI. (Shell metacharacters can be placed in raidtype because popen is used without any sanitization.) The credentials from CVE-2022-24990 exploitation can be used.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-24989 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-314522-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-08-20 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-74: Injection
Parent class for all injection vulnerabilities where attacker-supplied data is interpreted as code or commands.
Related attack patterns (CAPEC)
CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters via CWE-74
CAPEC-7 Blind SQL Injection via CWE-74
CAPEC-8 Buffer Overflow in an API Call via CWE-74
CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-74
CAPEC-10 Buffer Overflow via Environment Variables via CWE-74
Show all 37
CAPEC-13 Subverting Environment Variable Values via CWE-74
CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-74
CAPEC-24 Filter Failure through Buffer Overflow via CWE-74
CAPEC-34 HTTP Response Splitting via CWE-74
CAPEC-42 MIME Conversion via CWE-74
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-74
CAPEC-45 Buffer Overflow via Symbolic Links via CWE-74
CAPEC-46 Overflow Variables and Tags via CWE-74
CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-74
CAPEC-51 Poison Web Service Registry via CWE-74
CAPEC-52 Embedding NULL Bytes via CWE-74
CAPEC-53 Postfix, Null Terminate, and Backslash via CWE-74
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-74
CAPEC-67 String Format Overflow in syslog() via CWE-74
CAPEC-71 Using Unicode Encoding to Bypass Validation Logic via CWE-74
CAPEC-72 URL Encoding via CWE-74
CAPEC-76 Manipulating Web Input to File System Calls via CWE-74
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-74
CAPEC-79 Using Slashes in Alternate Encoding via CWE-74
CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic via CWE-74
CAPEC-83 XPath Injection via CWE-74
CAPEC-84 XQuery Injection via CWE-74
CAPEC-101 Server Side Include (SSI) Injection via CWE-74
CAPEC-105 HTTP Request Splitting via CWE-74
CAPEC-108 Command Line Execution through SQL Injection via CWE-74
CAPEC-120 Double Encoding via CWE-74
CAPEC-273 HTTP Response Smuggling via CWE-74
CAPEC-6 Argument Injection via CWE-74
CAPEC-135 Format String Injection via CWE-74
CAPEC-250 XML Injection via CWE-74
CAPEC-267 Leverage Alternate Encoding via CWE-74
CAPEC-28 Fuzzing via CWE-74
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
TerraMaster NAS devices through version 4.2.30 are vulnerable to remote code execution as root via the raidtype and diskstring parameters in the api.php?mobile/createRaid URI due to unsanitized input leading to PHP Object Instantiation.
Remote WAN attackers can exploit this vulnerability by sending a specially crafted request to the api.php?mobile/createRaid URI with malicious input in the raidtype and diskstring parameters. The use of popen without proper sanitization allows shell metacharacters to be executed, leading to arbitrary code execution with root privileges.
Questions
What is CVE-2022-24989?
TerraMaster NAS devices through version 4.2.30 are vulnerable to remote code execution as root via the raidtype and diskstring parameters in the api.php?mobile/createRaid URI due to unsanitized input leading to PHP Object Instantiation.
What is the CVSS score for CVE-2022-24989?
CVE-2022-24989 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: 26.1%.
Is CVE-2022-24989 actively exploited?
No confirmed active exploitation of CVE-2022-24989 as of 2026-09-25.
How do I remediate CVE-2022-24989?
Priority: IMMEDIATE.
What systems are affected by CVE-2022-24989?
CVE-2022-24989 affects Terra-Master Terramaster Operating System.
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":"Terra-Master","product":"Terramaster Operating System","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.