CVE-2025-27142: LocalSend - Command Injection
- Cve: CVE-2025-27142
- Name: LocalSend - Command Injection
- Description: LocalSend is a free, open-source app that allows users to securely share files and messages with nearby devices over their local network without needing an internet connection. Prior to version 1.17.0, due to the missing sanitization of the path in the `POST /api/localsend/v2/prepare-upload` and the `POST /api/localsend/v2/upload` endpoint, a malicious file transfer request can write files to the arbitrary location on the system, resulting in the remote command execution. A malicious file transfer request sent by nearby devices can write files into an arbitrary directory. This usually allows command execution via the startup folder on Windows or Bash-related files on Linux. If the user enables the `Quick Save` feature, it will silently write files without explicit user interaction. Version 1.17.0 fixes this issue.
- Impact: Attackers can write files to arbitrary locations, leading to remote command execution and potential full system compromise.
- Remediation: Update to version 1.17.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00544
- Epss percentile: 0.46525
- Assignee: [email protected]
- Published at: 2025-02-25T20:15:37Z
- Age in days: 637
- Modified at: 2026-06-17T09:03:05Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-27142
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| localsend:localsend | < 1.17.0 | no | nvd | /v1/products/localsend/localsend |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| localsend/localsend | commit, security_advisory | yes | /v1/repositories/localsend/localsend |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts