CVE-2022-24989 is a critical unauthenticated remote command execution vulnerability in TerraMaster NAS devices running TOS through 4.2.30. The vulnerability resides in the createRaid function exposed via the api.php?mobile/createRaid endpoint, where the raidtype and diskstring parameters are passed unsanitized to the popen() function, allowing arbitrary shell command injection. The attack is facilitated by chaining with CVE-2022-24990, which leaks the admin password hash and device MAC address, enabling attackers to bypass custom authentication and timestamp checks. The vulnerable code is found in /usr/www/module/api.php and /usr/www/include/class/mobile.class.php, and the exploit can be performed remotely without prior authentication, resulting in root-level code execution.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module targeting TerraMaster TOS (version 4.2.29 or lower) for unauthenticated remote code execution by chaining CVE-2022-24990 and CVE-2022-24989. The exploit works in two stages: first, it exploits an information disclosure vulnerability (CVE-2022-24990) via the endpoint 'api.php?mobile/webNasIPS' to leak sensitive data (admin password hash and MAC address). Using this information, it crafts a request to the 'api.php?mobile/createRaid' endpoint (CVE-2022-24989) to execute arbitrary commands as root. The module supports both direct command execution (reverse shell) and staged payloads (e.g., Meterpreter). The code is written in Ruby and is structured as a standard Metasploit exploit module, making it weaponized and easily customizable. The only file present is the exploit module itself, which includes all logic for exploitation, payload delivery, and target fingerprinting.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.