CVE-2021-21908
JSON

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 packageVersionsReported by
Garrett Metal DetectorsGarrett Metal Detectors iC Module CMA Version 5.0CVE List
garrett ic_module_firmware5.0NVD

All scores

talos6.0medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:L
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
NVD5.5medium CVSS:2.0AV: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-1359exploit, technical-description, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-21908 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-21908 changed 2026-06-17Public domain