Technical impact
Draw.io Desktop for Windows can run an attacker‑controlled PowerShell script or executable because the application starts system utilities from a bare name. When a diagram is first opened from a directory not already in the program’s working path, the directory containing the .drawio file becomes the current working directory. If an attacker places a file named powershell.bat, powershell.exe, attrib.exe, or a similarly named executable in that folder, the program will launch that file instead of the intended system utility. This allows a victim who extracts an archive supplied by an attacker and immediately opens the .drawio file to run arbitrary code that the attacker crafted. The flaw can be triggered when Local Fonts are enabled or when Draw.io updates draft or backup attributes. The threat exposes the victim’s machine to arbitrary code execution, potentially compromising confidentiality, integrity, and availability.
Affected Systems
The vulnerability affects the Windows version of the jgraph Draw.io Desktop application prior to update 31.5.2. No other operating systems or product versions are listed as affected.
Risk and Exploitability
The CVSS score of 7.8 indicates a high severity risk. No EPSS score is available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting that it may be less widely exploited at present. However, the attack requires only a local file and does not need network or elevated privileges, meaning that a user who opens a malicious diagram file from an untrusted source can trigger the exploit. The likely attack vector is a phishing or social‑engineering vector that delivers a malicious archive containing a .drawio file and an attacker‑controlled executable placed in the same folder. If the user runs the file, the payload will execute with the privileges of the application’s process, which may already have elevated rights if the user runs Draw.io as an administrator.