6.0medium
Specially-crafted command line arguments can lead to arbitrary file deletion.
- Severity
- 6.0medium CVSS:3.0 by talos
- Exploit likelihood
- 1.49% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Garrett Metal Detectors | Garrett Metal Detectors iC Module CMA Version 5.0 | CVE List |
| garrett ic_module_firmware | 5.0 | NVD |
All scores
| talos | 6.0medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:L |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| NVD | 5.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:N/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Los argumentos de la línea de comandos especialmente diseñados pueden conllevar a un borrado arbitrario de archivos. La función handle_delete no intenta sanear o comprobar de alguna manera el contenido del parámetro [file] (pasado a la función como argv[1]), lo que permite a un atacante autenticado suministrar primitivas de salto de directorio y eliminar archivos semi-arbitrarios
References
| https://talosintelligence.com/vulnerability_reports/TALOS-2021-1359 | exploit, technical-description, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21908 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-21908 changed 2026-06-17 | Public domain |