CVE-2021-21908 Path traversal in Garrett Metal Detectors
An authenticated attacker can exploit a path traversal vulnerability in the delete function to delete arbitrary files on the device.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-21908?
CVE-2021-21908 is a medium-severity path traversal vulnerability in Garrett Metal Detectors, published on 22 Dec 2021. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2021-21908?
It affects 1 product.
Products include Garrett Ic Module Firmware.
How do I fix CVE-2021-21908?
No fix has been published for CVE-2021-21908 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-21908 being exploited?
There is no known exploitation of CVE-2021-21908 in the wild and no public exploit code.
Other vulnerabilities in Garrett Metal Detectors
Sources
Also known as GHSA-xmjc-9xq6-vh8w.