Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-24990: Administrative Password Disclosure in TerraMaster TOS

Published Feb 7, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v3.1
EPSS83.2%100th percentile
CISA KEVYesAdded Feb 10, 2023
In the wildActivePer CISA KEV
Vendor
Terra-Mater
IdentifiersCVE-2022-24990CWE-200

CVE-2022-24990 is an administrative password disclosure vulnerability affecting TerraMaster NAS devices running TOS 4.2.29 and earlier. A remote attacker can send a request to the webNasIPS API component with the User-Agent header set to TNAS and retrieve the administrative password from the response's PWD field. Additional characterizations describe unauthenticated command execution through improper input validation or PHP object instantiation; whether these represent the standalone vulnerability or a broader exploitation chain is unclear.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

The directly specified impact is disclosure of the NAS administrative password, compromising credential confidentiality and potentially enabling administrative access. Additional claims associate the vulnerability with unauthenticated command execution and root access, but the relationship between those outcomes and the password-disclosure primitive is not established. Exploitation has been associated with ransomware initial access.

Mitigation

If you can’t patch tonight, do this now.

Restrict network access to the NAS management interface using firewall controls and network segmentation. Disable unnecessary externally accessible services and close their ports. Where supported, restrict or disable login for default administrative accounts. These measures reduce exposure but do not replace patching.

Remediation

Patch, then assume compromise.

Upgrade TerraMaster TOS to version 4.2.30, which patches the vulnerability, or a later supported release containing the fix.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
terramaster_unauth_rce_cve_2022_24990.rbThis 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.Disclosed Mar 7, 2022 · Framework: metasploit · ruby · networkWeaponizedCVE-2022-24990This repository contains a Python exploit script (CVE-2022-24990.py) targeting TerraMaster TOS, exploiting CVE-2022-24990, an unauthenticated remote code execution vulnerability via PHP object instantiation. The script provides two main functionalities: (1) detection of vulnerable targets by querying the '/module/api.php?mobile/webNasIPS' endpoint and extracting necessary credentials, and (2) exploitation by sending a crafted request to '/module/api.php?mobile/createRaid' to upload a randomly named PHP webshell. The webshell allows arbitrary PHP code execution via HTTP POST requests. The script supports single-target and batch modes, and outputs successful targets to a file. The repository also includes a README with usage instructions and references. The exploit is operational, providing a working payload and automation for both detection and exploitation.0xf4n9x · Disclosed Mar 20, 2022 · python · networkOperationalCVE-2022-24990This repository contains a Python exploit script targeting TerraMaster TOS (CVE-2022-24990), which chains an information disclosure vulnerability with remote code execution (RCE). The main script, 'TerraMaster TOS 信息泄露漏洞+RCE.py', reads a list of target URLs from 'host.txt' and attempts to exploit the vulnerability by first leaking sensitive information via the '/module/api.php?mobile/webNasIPS' endpoint. If successful, it uses the leaked credentials to send a crafted request to '/module/api.php?mobile/createRaid', writing a PHP file ('vuln1.php') containing a phpinfo webshell to the target server. The exploit demonstrates successful RCE by confirming the presence of the webshell. The repository is structured with a single exploit script, a README, a license, and a sample 'host.txt' file. The exploit is operational and can be adapted to write arbitrary PHP code to the target.lishang520 · Disclosed Mar 20, 2022 · python · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Terra-MaterTerramaster Operating Systemoperating_system
FAQ

Frequently asked questions

Is CVE-2022-24990 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Feb 10, 2023.
Is there a public exploit for CVE-2022-24990?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2022-24990, the earliest disclosed Mar 7, 2022.
Is there a patch for CVE-2022-24990?
Upgrade TerraMaster TOS to version 4.2.30, which patches the vulnerability, or a later supported release containing the fix.
What products are affected by CVE-2022-24990?
Terra-Mater Terramaster Operating System.
How severe is CVE-2022-24990?
CVE-2022-24990 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 83.2% (100th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware3Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.