# CVE-2022-24989: TerraMaster NAS through 4.2.30 allows remote WAN attackers to execute arbitrary code as root via the raidtype and diskstring parameters for…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 26.1%, higher than 98% of CVEs (2026-11-26)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2023-08-20T00:00:00.000Z
- Modified: 2026-06-17T04:32:54.627Z
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- terra-master terramaster_operating_system: up to 4.2.30; before 4.2.31

## References

- <https://github.com/0xf4n9x/CVE-2022-24990> (exploit)
- <https://packetstormsecurity.com/files/172904> (exploit, third-party-advisory, vdb-entry)
- <https://octagon.net/blog/2022/03/07/cve-2022-24990-terrmaster-tos-unauthenticated-remote-command-execution-via-php-object-instantiation> (exploit)
- <https://forum.terra-master.com/en/viewforum.php?f=28> (release-notes)
- <https://attackerkb.com/topics/h8YKVKx21t/cve-2022-24990> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-24989](https://www.cve.org/CVERecord?id=CVE-2022-24989), CVE Terms of Use, modified 2024-10-08
- NVD: [CVE-2022-24989](https://nvd.nist.gov/vuln/detail/CVE-2022-24989), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24989 · Whole record: https://cve.day/CVE-2022-24989.json · Rebuilt by cve.day 2026-11-25T22:58:19.564Z
