Vulnerability record · CVE-2022-24989 · published 20 August 2023
CVE-2022-24989: Terra-master terramaster operating system injection vulnerability
Terra Master · Terramaster Operating System
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.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://attackerkb.com/topics/h8YKVKx21t/cve-2022-24990 | Third Party Advisory |
| https://forum.terra-master.com/en/viewforum.php?f=28 | Release Notes |
| https://github.com/0xf4n9x/CVE-2022-24990 | Exploit |
| https://octagon.net/blog/2022/03/07/cve-2022-24990-terrmaster-tos-unauthenticated-remote-command-execution-via-php-objec | Exploit |
| https://packetstormsecurity.com/files/172904 | ExploitThird Party AdvisoryVDB Entry |
| https://attackerkb.com/topics/h8YKVKx21t/cve-2022-24990 | Third Party Advisory |
| https://forum.terra-master.com/en/viewforum.php?f=28 | Release Notes |
| https://github.com/0xf4n9x/CVE-2022-24990 | Exploit |
| https://octagon.net/blog/2022/03/07/cve-2022-24990-terrmaster-tos-unauthenticated-remote-command-execution-via-php-objec | Exploit |
| https://packetstormsecurity.com/files/172904 | ExploitThird Party AdvisoryVDB Entry |
Track CVE-2022-24989 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-24989), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.