Vulnerability Description
Traccar is an open source GPS tracking system. Traccar versions 5.1 through 5.12 allow arbitrary files to be uploaded through the device image upload API. Attackers have full control over the file contents, full control over the directory where the file is stored, full control over the file extension, and partial control over the file name. While it's not for an attacker to overwrite an existing file, an attacker can create new files with certain names and attacker-controlled extensions anywhere on the file system. This can potentially lead to remote code execution, XSS, DOS, etc. The default install of Traccar makes this vulnerability more severe. Self-registration is enabled by default, allowing anyone to create an account to exploit this vulnerability. Traccar also runs by default with root/system privileges, allowing files to be placed anywhere on the file system. Version 6.0 contains a fix for the issue. One may also turn off self-registration by default, as that would make most vulnerabilities in the application much harder to exploit by default and reduce the severity considerably.
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Traccar | Traccar | >= 5.1, <= 5.12 |
Related Weaknesses (CWE)
References
- https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/model/DProduct
- https://github.com/traccar/traccar/blob/v5.12/src/main/java/org/traccar/api/resoProduct
- https://github.com/traccar/traccar/commit/3fbdcd81566bc72e319ec05c77cf8a4120b87bPatch
- https://github.com/traccar/traccar/security/advisories/GHSA-3gxq-f2qj-c8v9ExploitVendor Advisory
- https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/model/DProduct
- https://github.com/traccar/traccar/blob/v5.12/src/main/java/org/traccar/api/resoProduct
- https://github.com/traccar/traccar/commit/3fbdcd81566bc72e319ec05c77cf8a4120b87bPatch
- https://github.com/traccar/traccar/security/advisories/GHSA-3gxq-f2qj-c8v9ExploitVendor Advisory
FAQ
What is CVE-2024-31214?
CVE-2024-31214 is a vulnerability with a CVSS score of 9.6 (CRITICAL). Traccar is an open source GPS tracking system. Traccar versions 5.1 through 5.12 allow arbitrary files to be uploaded through the device image upload API. Attackers have full control over the file con...
How severe is CVE-2024-31214?
CVE-2024-31214 has been rated CRITICAL with a CVSS base score of 9.6/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2024-31214?
Check the references section above for vendor advisories and patch information. Affected products include: Traccar Traccar.