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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-02-25T20:03:23.204Z
- Modified: 2026-06-17T09:03:05.440Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- localsend localsend: < 1.17.0; before 1.17.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2025-27142](https://www.cve.org/CVERecord?id=CVE-2025-27142), CVE Terms of Use, modified 2025-02-26
- NVD: [CVE-2025-27142](https://nvd.nist.gov/vuln/detail/CVE-2025-27142), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-27142 · Whole record: https://cve.day/CVE-2025-27142.json · Rebuilt by cve.day 2026-11-25T22:58:54.429Z
