{"id":"CVE-2022-24989","published":"2023-08-20T00:00:00Z","modified":"2024-10-08T14:30:47Z","title":"TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via the raidtype and…","vendor":null,"product":null,"tier":"core","eol":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-10-08T14:28:56.844478Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is in the TerraMaster NAS firmware (through 4.2.30), specifically in the api.php mobile/createRaid endpoint, where the raidtype and diskstring parameters are passed to a popen call without sanitization, allowing PHP object instantiation and shell metacharacter injection. A remote attacker on the WAN can exploit this to execute arbitrary code as root, and the attack is easier when valid credentials are already available from a prior compromise such as the one described for the related credential flaw.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-30T13:35:50Z"},"cvss":null,"epss":{"score":0.31881,"percentile":0.98343,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-02-22","exploitedFirstSeen":"2024-02-22","ransomware":true,"evidence":[{"url":"https://www.360.cn/n/12457.html","date":"2024-02-22"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":2,"pulses":[{"name":"Proof Point Emerging Exploit list","url":"https://otx.alienvault.com/pulse/6399fdc966948f6b537b9762","created":"2022-12-14"},{"name":"Two Critical Bugs Leading to Unauthenticated RCE Fixed in TNAS Devices","url":"https://otx.alienvault.com/pulse/622884edf19dfd3b9a1758a5","created":"2022-03-09"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://forum.terra-master.com/en/viewforum.php?f=28","tags":[]},{"url":"https://github.com/0xf4n9x/CVE-2022-24990","tags":[]},{"url":"https://packetstormsecurity.com/files/172904","tags":[]},{"url":"https://attackerkb.com/topics/h8YKVKx21t/cve-2022-24990","tags":[]},{"url":"https://octagon.net/blog/2022/03/07/cve-2022-24990-terrmaster-tos-unauthenticated-remote-command-execution-via-php-object-instantiation","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2022-29736","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-29736","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"metasploit":[{"name":"TerraMaster TOS 4.2.29 or lower - Unauthenticated RCE chaining CVE-2022-24990 and CVE-2022-24989","module":"exploit/linux/http/terramaster_unauth_rce_cve_2022_24990","type":"exploit","disclosureDate":"2022-03-07","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/terramaster_unauth_rce_cve_2022_24990.rb"}],"first":{"date":"2022-03-07","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/terramaster_unauth_rce_cve_2022_24990.rb"},"provenance":"source"},"exploitRefs":["https://packetstormsecurity.com/files/172904"],"flow":[],"timeline":[{"date":"2022-03-07","kind":"exploit-public","label":"First public exploit: Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/terramaster_unauth_rce_cve_2022_24990.rb","provenance":"source"},{"date":"2023-08-20","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-24989","provenance":"source"},{"date":"2024-02-22","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.360.cn/n/12457.html","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":70.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1003 days ago"},{"name":"Known ransomware use","points":10.0,"detail":"VulnCheck KEV: Known"},{"name":"EPSS percentile","points":19.67,"detail":"percentile 0.9834"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":1.08,"detail":"2 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}