National Instruments LabVIEW LvVarientUnflatten Code Execution Vulnerability
A heap-based buffer overflow in LabVIEW's LvVarientUnflatten functionality allows a crafted VI file to use a user-controlled value as a loop terminator, causing internal heap corruption. An attacker could exploit this to achieve remote code execution.
Originally disclosed on Cisco Talos
An exploitable memory corruption vulnerability exists in the LvVarientUnflatten functionality of LabVIEW 2016 version 16.0.0.49152. A specially crafted VI file can cause a user controlled value to be used as a loop terminator resulting in internal heap corruption.
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, the program reads a 32-bit value from the file and uses it as a loop counter without validating it, leading to excessive heap clearing.
Impact
Exploitation could lead to remote code execution.
What the attacker needed
Victim opens a crafted VI file
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.
LabVIEW is software for engineers to build measurement and control systems. A specially crafted file can trick the program into clearing too much of its own memory, which can crash it or let an attacker run 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.