{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-27142 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-27142 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-27142 is a medium-severity path traversal vulnerability in localsend, published on 25 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-27142 and fix it if it is affected.\n\nWhat it is: CVE-2025-27142 is a medium-severity path traversal vulnerability in localsend, published on 25 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-27142 in the wild and no public exploit code.\n\nAffected product: localsend. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-27142/ (Markdown: https://insights.sbomify.com/CVE-2025-27142/index.md)","id":"CVE-2025-27142","markdown":"https://insights.sbomify.com/CVE-2025-27142/index.md","name":"CVE-2025-27142","record":{"aliases":["GHSA-f7jp-p6j4-3522"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"LocalSend file sharing app","requires_auth":"none","summary":"Nearby attackers can exploit path traversal in LocalSend to write arbitrary files, potentially achieving remote code execution via startup folders or shell scripts.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"localsend","vendor":"localsend"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"LocalSend path traversal vulnerability in the file upload endpoint allows nearby devices to execute arbitrary commands","id":"CVE-2025-27142","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":0,"n_references":2,"next":{"headline":"Beter Auth has an Open Redirect via Scheme-Less Callback Parameter","id":"CVE-2025-27143"},"packages":[],"prev":{"headline":"Metabase Enterprise Edition allows cached questions to leak data to impersonated users","id":"CVE-2025-27141"},"products":["localsend"],"published":"2025-02-25","related":[{"cvss_score":9.3,"headline":"LocalSend is Vulnerable to Man-in-the-Middle Attacks, Leading to File Interception","id":"CVE-2025-54792","kev_date_added":null,"published":"2025-08-01"},{"cvss_score":6.1,"headline":"LocalSend has Stored XSS in Web Share Interface via Filename","id":"CVE-2026-25154","kev_date_added":null,"published":"2026-01-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-26","vendors":["localsend"]},"summary":"Nearby attackers can exploit path traversal in LocalSend to write arbitrary files, potentially achieving remote code execution via startup folders or shell scripts.","url":"https://insights.sbomify.com/CVE-2025-27142/"}