Skip to main content
Vulnerability Database/CVE-2025-54792

CVE-2025-54792: LocalSend Information Disclosure Vulnerability

CVE-2025-54792 is an information disclosure flaw in LocalSend allowing Man-in-the-Middle attacks on local networks. Attackers can intercept and modify file transfers between devices. This article covers technical details, affected versions, security impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-54792 Overview

LocalSend is an open-source application for sharing files and messages between nearby devices over local networks without internet connectivity. Versions 1.16.1 and below contain a Man-in-the-Middle (MitM) vulnerability in the discovery protocol. An unauthenticated attacker on the same local network can impersonate legitimate devices and silently intercept, read, or modify file transfers. This enables data theft or the injection of malicious payloads, including ransomware, into files exchanged between trusted users. The issue is tracked as CWE-300: Channel Accessible by Non-Endpoint and was fixed in version 1.17.0.

Critical Impact

Attackers on the local network can impersonate LocalSend peers to intercept transfers, exfiltrate sensitive files, and substitute malware for legitimate content.

Affected Products

  • LocalSend versions 1.16.1 and below
  • Cross-platform builds (Windows, macOS, Linux, Android, iOS)
  • Fixed in LocalSend 1.17.0

Discovery Timeline

  • 2025-08-01 - CVE-2025-54792 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-54792

Vulnerability Analysis

The flaw resides in LocalSend's discovery protocol, which peers use to advertise and locate each other on the local network. Because the protocol does not cryptographically verify device identity, an attacker with adjacent network access can register as a trusted peer. Once impersonation succeeds, transfers flow through the attacker, who can silently read files, modify them in transit, or replace them with malicious payloads. The attack requires no credentials and produces little observable evidence for the victim.

The upstream patch in commit e8635204 also hardens the receive path against traversal by validating that resolved file destinations stay within the intended parent directory before creation. See the GitHub Security Advisory GHSA-424h-5f6m-x63f for authoritative details.

Root Cause

The discovery protocol lacks endpoint authentication and integrity verification. LocalSend accepted peer identity claims without validating the endpoint, matching the definition of CWE-300. This allowed a malicious node to position itself between two legitimate peers as a trusted relay.

Attack Vector

Exploitation requires adjacent network access, such as a shared Wi-Fi or LAN segment, and limited user interaction where the victim initiates or accepts a transfer. No privileges are required. The attacker announces themselves through the discovery protocol as a legitimate device, then proxies or replaces transfer content.

text
// Patch excerpt from app/lib/util/native/file_saver.dart (v1.17.0)
// Adds explicit path traversal validation before directory creation
if (fileNameParts.length > 1) {
  // Check path traversal
  if (!p.isWithin(parentDirectory, dir)) {
    throw 'Path traversal detected';
  }

  try {
    Directory(dir).createSync(recursive: true);
  } catch (e) {
    _logger.warning('Could not create directory', e);
  }
}

Source: GitHub Commit e8635204

Detection Methods for CVE-2025-54792

Indicators of Compromise

  • Unexpected LocalSend peers advertising on the local network with device names that mimic legitimate hosts.
  • File transfers completing with modified content, altered hashes, or unexpected file types compared to the sender's original.
  • LocalSend clients showing duplicate device entries or rapid appearance and disappearance of peers during discovery.

Detection Strategies

  • Monitor LAN and Wi-Fi segments for anomalous multicast or broadcast traffic on ports used by LocalSend discovery.
  • Compare cryptographic hashes of sent and received files out-of-band to detect in-transit modification.
  • Inventory installed LocalSend versions across managed endpoints and flag any instance at or below 1.16.1.

Monitoring Recommendations

  • Alert on newly installed peer-to-peer file transfer applications on corporate endpoints and unmanaged BYOD hosts.
  • Track outbound writes from LocalSend processes to sensitive directories to catch malicious payload delivery.
  • Enable network segmentation logging so that unexpected device-to-device flows on guest or user Wi-Fi are visible for review.

How to Mitigate CVE-2025-54792

Immediate Actions Required

  • Upgrade all LocalSend installations to version 1.17.0 or later, which is available from the GitHub Release v1.17.0 page.
  • Inventory endpoints for vulnerable LocalSend builds and prioritize patching on hosts that handle sensitive data.
  • Restrict LocalSend usage to trusted, segmented networks until patched versions are deployed everywhere.

Patch Information

The fix landed in upstream commit e8635204ec782ded45bc7d698deb60f3c4105687 and shipped in LocalSend 1.17.0. Reference the GitHub Security Advisory GHSA-424h-5f6m-x63f for the official remediation guidance.

Workarounds

  • Disable or uninstall LocalSend on endpoints where the 1.17.0 upgrade cannot be applied immediately.
  • Avoid using LocalSend on shared or untrusted networks such as public Wi-Fi, coworking spaces, or guest LANs.
  • Verify file integrity out-of-band by comparing hashes with the sender through an authenticated channel after each transfer.
bash
# Verify installed LocalSend version on Linux/macOS
localsend --version

# Example integrity check after receiving a file
sha256sum received_file.zip
# Compare the output with the hash provided by the sender via a trusted channel

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.