Patchfirst
CVE-2022-24989 Public exploit EPSS 31.9%

TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via the raidtype and…

No fixed version listed yet.Check the vendor advisory. References ↓

Summary

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.

Official description · CVE.org

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.

Breakdown
70.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 6 months after disclosure. Public exploit code (Metasploit) was available 17 months before disclosure.

  1. Public exploit codeMetasploit17 mo before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+6 mo

What security researchers reported

Not named in any threat report yet

Also mentioned in 2 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close