CVE-2022-24989 Command injection in n/a
Remote attackers can execute arbitrary code as root on TerraMaster NAS devices via unsanitized parameters in the createRaid API endpoint.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-24989?
CVE-2022-24989 is a critical command injection vulnerability in n/a, published on 20 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-74
Which versions are affected by CVE-2022-24989?
It affects 1 product.
Products include Terra-Master Terramaster Operating System.
How do I fix CVE-2022-24989?
No fix has been published for CVE-2022-24989 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-24989 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24989 exists.
Public exploit code: 1 Metasploit module.
Other vulnerabilities in n/a
Sources
Also known as GHSA-37wm-xp2m-g3h7.