Wireshark LoRaWAN Decryption Numeric Truncation Error Remote Code Execution Vulnerability
Wireshark's LoRaWAN payload decryption did not properly validate user-supplied data, leading to an incorrect calculation before a memory write. A network-adjacent attacker could exploit this to execute code in the context of the Wireshark process, but only when LoRaWAN decryption is enabled.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Wireshark. Authentication is not required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a numeric truncation in the LoRaWAN decryption code, where a length or offset derived from packet data is miscalculated before a memory write, without proper bounds validation.
Impact
A network-adjacent attacker could execute arbitrary code in the context of the Wireshark process, though only instances with LoRaWAN decryption enabled are affected.
What the attacker needed
LoRaWAN decryption enabled; network-adjacent attacker
The fix
The vendor fixed the flaw in versions 4.6 and 4.4, as shown by the linked commits.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Wireshark is a program for inspecting network traffic. When it decrypts a particular radio protocol called LoRaWAN, it did not check the size of incoming data properly, so a crafted packet could make it write data in the wrong place in memory. An attacker nearby on the network could use this to run their own code on the victim's machine, but only if that feature was switched on.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.