# CVE-2021-21908: Specially-crafted command line arguments can lead to arbitrary file deletion.

- Severity: Medium 6.0 (CVSS:3.0, scored by talos) `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:L`
- 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): 1.49%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-22T18:06:52.000Z
- Modified: 2026-06-17T03:36:20.493Z
- Weaknesses: CWE-22
- Assigned by: talos

## Description

Specially-crafted command line arguments can lead to arbitrary file deletion. The handle_delete function does not attempt to sanitize or otherwise validate the contents of the [file] parameter (passed to the function as argv[1]), allowing an authenticated attacker to supply directory traversal primitives and delete semi-arbitrary files.

(As written by CVE List.)

## Affected

- Garrett Metal Detectors: Garrett Metal Detectors iC Module CMA Version 5.0
- garrett ic_module_firmware: 5.0

## Every score

- talos: CVSS:3.0 6.0 Medium `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:P`

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2021-1359> (exploit, technical-description, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2021-21908 · Whole record: https://cve.day/CVE-2021-21908.json · Rebuilt by cve.day 2026-11-25T22:58:06.119Z
