# CVE-2025-27142: LocalSend path traversal vulnerability in the file upload endpoint allows nearby devices to execute arbitrary commands

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Unreported
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.92% (percentile 59, 2026-11-28)
- **CWE:** CWE-22
- **Published:** 2025-02-25T20:03:23.204Z
- **Modified:** 2026-06-17T09:03:05.440Z

## Who should check

- Anyone running localsend \< 1.17.0

## 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.

## Affected and fixed versions

- localsend: \< 1.17.0 (cvelist)

## Mitigation

- Upgrade localsend to 1.17.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-27142. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-27142.md
Affected: localsend < 1.17.0
Fixed in: localsend 1.17.0

Steps:
1. Search this machine and project for localsend: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-27142 being exploited?

There is no confirmed exploitation: CVE-2025-27142 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.92% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-27142?

Medium: CVSS 6.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-27142?

localsend \< 1.17.0.

### Is there a fix for CVE-2025-27142?

Yes. Fixed in localsend 1.17.0. Upgrade localsend to 1.17.0 or later.

### How do I check if I'm affected by CVE-2025-27142?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/localsend/localsend/security/advisories/GHSA-f7jp-p6j4-3522>
- patch: <https://github.com/localsend/localsend/commit/e8635204ec782ded45bc7d698deb60f3c4105687>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-27142>

HTML: <https://flawdb.com/CVE-2025-27142> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-27142>
