CVE-2021-21907: A directory traversal vulnerability exists in the CMA CLI getenv command functionality of Garrett Metal Detect
CVE-2021-21907 is a medium-severity flaw (CVSS 4.9) affecting ic module cma. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
A directory traversal vulnerability exists in the CMA CLI getenv command functionality of Garrett Metal Detectors’ iC Module CMA Version 5.0. A specially-crafted command line argument can lead to local file inclusion. An attacker can provide malicious input to trigger this vulnerability.
Why this priority
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 4.9 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 1.5% (top 26%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2021-12-22 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-21907?
ic module cma: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-21907 being exploited?
CVE-2021-21907 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-21907 affect?
CVE-2021-21907 affects ic module cma. Severity is medium (CVSS 4.9). A directory traversal vulnerability exists in the CMA CLI getenv command functionality of Garrett Metal Detectors’ iC Module CMA Version 5.0. A specially-crafted command line argument can lead to local file inclusion. An attacker can provid
How urgent is CVE-2021-21907?
Priority 41/100. Public exploit reference
Related CVEs
- CVE-2021-21906 HIGH 7.2 MITIGATE Stack-based buffer overflow vulnerability exists in how the CMA readfile function of Garrett Metal Detectors i
- CVE-2021-21905 HIGH 7.2 MITIGATE Stack-based buffer overflow vulnerability exists in how the CMA readfile function of Garrett Metal Detectors i
- CVE-2021-21904 HIGH 7.2 MITIGATE A directory traversal vulnerability exists in the CMA CLI setenv command of Garrett Metal Detectors’ iC Module
- CVE-2021-21903 CRITICAL 9.8 MITIGATE A stack-based buffer overflow vulnerability exists in the CMA check_udp_crc function of Garrett Metal Detector
- CVE-2021-21902 HIGH 8.1 MITIGATE An authentication bypass vulnerability exists in the CMA run_server_6877 functionality of Garrett Metal Detect