{"id":"CVE-2022-24989","aliases":["EUVD-2022-29736","GHSA-37wm-xp2m-g3h7"],"status":"published","title":"TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via...","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.31881,"percentile":0.98315,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-74"],"published":"2023-08-20T00:00:00Z","modified":"2026-06-17T04:32:54Z","exploits":[{"source":"metasploit","id":"exploit/linux/http/terramaster_unauth_rce_cve_2022_24990","title":"TerraMaster TOS 4.2.29 or lower - Unauthenticated RCE chaining CVE-2022-24990 and CVE-2022-24989","type":"exploit","platform":"Linux,Unix","date":"2022-03-07","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/linux/http/terramaster_unauth_rce_cve_2022_24990"}],"products":[{"vendor":"terra-master","product":"terramaster_operating_system"}],"references":[{"url":"https://forum.terra-master.com/en/viewforum.php?f=28","tags":["x_transferred","Release Notes"]},{"url":"https://github.com/0xf4n9x/CVE-2022-24990","tags":["x_transferred","Exploit"]},{"url":"https://packetstormsecurity.com/files/172904","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://attackerkb.com/topics/h8YKVKx21t/cve-2022-24990","tags":["x_transferred","Third Party Advisory"]},{"url":"https://octagon.net/blog/2022/03/07/cve-2022-24990-terrmaster-tos-unauthenticated-remote-command-execution-via-php-object-instantiation","tags":["x_transferred","Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24989"},{"url":"https://github.com/advisories/GHSA-37wm-xp2m-g3h7"}],"sources":{"cve":[{"id":"CVE-2022-24989","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.","status":"published","published":"2023-08-20T00:00:00Z","modified":"2024-10-08T14:30:47.504Z","updated_at":"2026-11-02T14:34:34.576287Z"}],"euvd":[{"id":"EUVD-2022-29736","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.","status":"published","published":"2023-08-20T00:00:00Z","modified":"2024-10-08T14:30:47Z","updated_at":"2026-11-03T00:27:45.808193Z"}],"ghsa":[{"id":"GHSA-37wm-xp2m-g3h7","title":"TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via...","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.","status":"published","published":"2023-08-20T18:30:36Z","modified":"2024-04-04T07:03:57Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:56:48.229282Z"}],"nvd":[{"id":"CVE-2022-24989","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.","status":"published","published":"2023-08-20T18:15:09.523Z","modified":"2026-06-17T04:32:54.627Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:07:39.811118Z"}]}}
