Jgraph drawio-desktop
draw.io Desktop allows Windows executable search-path hijacking
draw.io Desktop is the official Electron build of draw.io. Prior to 31.5.2, the Windows application launched powershell and attrib by bare executable name from src/main/electron.js. When draw.io Desktop was not already running, opening a diagram from File Explorer made the diagram directory the current working directory, allowing a colocated attacker-controlled powershell.bat or attrib.exe to be resolved before the intended system executable. A victim who extracted an attacker-supplied archive and cold-opened its legitimate .drawio file could therefore execute attacker-controlled code when Local Fonts were enabled or when draft or backup attributes were updated. This issue is fixed in version 31.5.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 31.5.2
Fixed in 31.5.2
Mitigation
Upgrade drawio-desktop to 31.5.2 or later.
References
- Vendor advisory github.com/jgraph/drawio-desktop/security/advi…
- Patch github.com/jgraph/drawio-desktop/commit/3fed7e…
- Release notes github.com/jgraph/drawio-desktop/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.