NoMachine mDNS Heap-based Buffer Overflow Remote Code Execution Vulnerability
NoMachine's mDNS resource record parsing fails to validate the length of user-supplied data before copying it into a heap buffer. A network-adjacent attacker can exploit this to execute arbitrary code as the service account without authentication.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of NoMachine. 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 missing bounds check on a length field in mDNS resource records, allowing a heap buffer overflow during copying.
Impact
A network-adjacent, unauthenticated attacker could execute arbitrary code in the context of the service account.
What the attacker needed
Network-adjacent access; no authentication required
The fix
The vulnerability was fixed in NoMachine v10.1.7, v9.9.6 and v8.27.1.
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.
NoMachine is remote desktop software. Its mDNS feature listens for small network announcements on the local network. The program trusts a length value in those announcements and copies data into a fixed-size memory area without checking it fits, so a nearby attacker can send a crafted announcement that overflows memory and runs their own code.
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.