CVE-2022-24989
A public proof of concept exists; no exploitation attested.
- Published2023-08-20
- Fixed in4.2.31
- WeaknessCWE-74
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2023-08-2018:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-24989?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-24989?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.2 | < 4.2.31 | 4.2.31 | NVD |
| 4.2 | ≤ 4.2.30 | no fix published | CISA-ADP |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Fix
- Update Terra-master terramaster operating system to 4.2.31
Advisories and patches
- forum.terra-master.comRelease Notes
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- none listed PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/linux/http/terramaster_unauth_rce_cve_2022_24990rank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-10-08
- OpenCVESSVC decisionpoc—
- NVDCVSS 3.19.8read 2026-10-23
- NVDweakness (CWE)CWE-74read 2026-10-23
- FIRST EPSSEPSS score31.9 %read 2026-11-02
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- GitHub Advisoriesadvisory—
Identifiers
- EUVD-2022-29736same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-37wm-xp2m-g3h7same flawGitHub Advisory Database · CC-BY-4.0
- exploit/linux/http/terramaster_unauth_rce_cve_2022_24990exploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2023-08-20
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-37wm-xp2m-g3h7
Frequently asked questions
What is CVE-2022-24989?
Is CVE-2022-24989 actively exploited?
What is the CVSS score for CVE-2022-24989?
Hear about the next vulnerability in your software
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-37wm-xp2m-g3h7
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- CISA Vulnrichment · CC0-1.0