Skip to content
Memory corruption Advisory Advanced

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.

HeeChan Kim Follow

Originally disclosed on Zero Day Initiative

High 7.1 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Wireshark. Authentication is not required to exploit this vulnerability.

HeeChan Kim (@heegong123) of TeamH4C, on the Zero Day Initiative

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.

More by HeeChan Kim

View all

2 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.