CVE-2024-31214 in the critical feed json
Traccar's unrestricted file upload vulnerability in device image upload could lead to remote code execution
published 2024-04-10 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-29114
- cvss
- 9.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 17.6%
- EPSS 17.6% chance of exploitation in 30 days, percentile 97%
- public exploits
- 1
- Metasploit
Summary
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.
Patch / fix
Timeline
- Published
- First public exploit (Metasploit exploit/linux/http/traccar_rce_upload)
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
17.63% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/linux/http/traccar_rce_upload Traccar v5 Remote Code Execution (CVE-2024-31214 and CVE-2024-24809) metasploit exploit, excellent rank, 2024-08-23
- github.com https://github.com/traccar/traccar/security/advisories/GHSA-3gxq-f2qj-c8v9 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected products
- traccar traccar
Classification
- Weakness
-
- CWE-434 Unrestricted Upload of File with Dangerous Type
References
-
github.com
/traccar/traccar/commit/3fbdcd81566bc72e319ec05c77cf8a4120b87b8f
patch
-
github.com
/traccar/traccar/security/advisories/GHSA-3gxq-f2qj-c8v9
exploit, vendor-advisory
-
github.com
/traccar/traccar/blob/master/src/main/java/org/traccar/model/Device.java#L56
product
-
github.com
/traccar/traccar/blob/v5.12/src/main/java/org/traccar/api/resource/DeviceResource.java#L191
product
Sources
- CVE List CVE-2024-31214
- NVD CVE-2024-31214
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.