CVE-2025-54792
NixOS vulnerability analysis and mitigation

Overview

CVE-2025-54792 is a Man-in-the-Middle (MitM) vulnerability in LocalSend's UDP-based device discovery protocol that allows an unauthenticated attacker on the same local network to impersonate legitimate devices and intercept or modify file transfers. It affects LocalSend versions 1.16.1 and below, and was disclosed on August 1, 2025, with a fix released in version 1.17.0. The vulnerability carries a CVSS v3.1 base score of 6.8 (Medium) and a CVSS v4.0 base score of 9.3 (Critical) (GitHub Advisory, Red Hat CVE).

Technical details

The root cause lies in LocalSend's use of UDP multicast packets for peer discovery, where the source IP address field in UDP packet headers is not authenticated or verified (CWE-300: Channel Accessible by Non-Endpoint; CWE-345: Insufficient Verification of Data Authenticity). When a device receives a discovery packet, it trusts the sender's claimed IP and device information without any cryptographic verification, adding the peer to the UI for file transfers. An attacker on the same network can trivially spoof the source IP in UDP discovery packets to impersonate any legitimate device — including devices saved in a user's "Favorites" list — causing victims to unknowingly send files to the attacker's machine. A proof-of-concept demonstrating the attack (including a GIF walkthrough) was published in the GitHub Security Advisory (GitHub Advisory).

Impact

Successful exploitation allows an attacker to silently intercept all files and messages sent between LocalSend users on the same network, fully compromising the confidentiality and integrity of transferred data. Beyond passive interception, the attacker can modify files in transit to embed malicious payloads such as ransomware, spyware, or trojans, which are then delivered to the recipient appearing to originate from a trusted source. Because the attacker can also forge the sender field of packets, the compromised file reaches the intended recipient, making it highly likely the victim will open it and potentially leading to arbitrary code execution and persistent compromise of the recipient's device (GitHub Advisory).

Exploitability

A proof-of-concept exploit (including a demonstration GIF) is publicly available in the GitHub Security Advisory, showing a practical attack scenario where a legitimate file transfer is intercepted and redirected to the attacker's machine. There is no evidence of in-the-wild exploitation at this time, and the CVE is not listed in the CISA KEV catalog. The EPSS score is approximately 0.01%, reflecting low current exploitation probability. The attack requires the attacker to be on the same local network (e.g., shared Wi-Fi), requires no authentication or privileges, and is described as easy to implement and difficult to detect (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Join the same local network (e.g., Wi-Fi) as the target LocalSend users running version 1.16.1 or below. Identify active LocalSend devices by monitoring UDP multicast traffic on the network.
  2. Craft spoofed UDP discovery packet: Forge a UDP multicast discovery packet with the source IP address set to the IP of a legitimate target device (e.g., the victim's smartphone) that the sender trusts.
  3. Broadcast spoofed packet: Transmit the crafted UDP packet to the LocalSend multicast address. The victim's LocalSend client receives the packet and replaces the legitimate peer entry in its UI with the attacker's device, using the spoofed IP.
  4. Intercept file transfer: When the victim selects what they believe is their trusted device and initiates a file transfer, the connection is established with the attacker's machine instead, delivering the file directly to the attacker.
  5. Inject malicious payload (optional MitM): After receiving the intercepted file, the attacker embeds a malicious payload (e.g., ransomware, trojan) into it, then forwards the modified file to the legitimate recipient by forging the sender field in the packet, causing the victim to receive and potentially execute the malware from an apparently trusted source (GitHub Advisory).

Indicators of compromise

  • Network: Unexpected UDP multicast packets on the LocalSend discovery port (default: 53317) with source IP addresses that do not match the actual MAC address of the sending device (detectable via ARP table inspection); multiple discovery announcements for the same device alias from different IP addresses.
  • Application Behavior: A known/trusted device disappearing from the LocalSend peer list and being replaced by a device with the same name but a different IP address; file transfers completing but the recipient device reporting it never received the file.
  • File System: Received files containing unexpected embedded executables, scripts, or macro-enabled documents inconsistent with the original sent content; newly received files triggering antivirus alerts upon opening.
  • Logs: LocalSend application logs showing peer registration events from IP addresses not matching known devices on the network (GitHub Advisory).

Mitigation and workarounds

The primary remediation is to upgrade LocalSend to version 1.17.0 or later, which addresses the path traversal component and includes security fixes (LocalSend v1.17.0). The fix commit (e8635204) implements TCP handshake-based IP address verification to prevent UDP source IP spoofing in the discovery protocol (GitHub Commit). As interim workarounds, users should avoid using LocalSend on untrusted or shared networks, manually verify device identities before transferring sensitive files, and apply additional encryption to critical file transfers (GitHub Advisory).

Community reactions

The vulnerability was reported by security researcher DeePunk42 and published by LocalSend maintainer Tienisto on August 1, 2025. A Mastodon post referencing the vulnerability was noted in community feeds. Red Hat tracked the CVE in their security database. No major media coverage or significant public researcher commentary beyond the GitHub advisory has been identified at this time (GitHub Advisory, Red Hat CVE).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management