Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.6

CVE-2024-31214: Traccar GPS Tracking System: Unrestricted File Uploads Allow Remote Code Execution

CVE-2024-31214 · published 2 years ago
Summary

The Traccar GPS tracking system allows anyone to upload any type of file to the server without restrictions. This means an attacker could potentially upload malicious files that allow them to take control of the system or disrupt its operation. To protect your system, update to version 6.0 or disable self-registration and run Traccar with reduced privileges if possible.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
traccar traccar >= 5.1, <= 5.12
cpe:2.3:a:traccar:traccar:*:*:*:*:*:*:*:*
Original advisory text
Traccar's unrestricted file upload vulnerability in device image upload could lead to remote code execution
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.6 Critical
Exploitation
18% chance of attack within 30 days
Type
CWE-434Unrestricted File Upload
Timeline
Published10 Apr 2024
Updated20 Oct 2026
First seen12 Apr 2026
Sources
CVE-2024-31214 · NVD
Track software like this
Free during beta