CVE-2024-9145 Local command injection in Wiz Code Visual Studio Code extension
Attackers can execute arbitrary commands if a user scans a malicious Dockerfile in a trusted folder using the Wiz Code VS Code extension.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-9145?
CVE-2024-9145 is a high-severity command injection vulnerability in Wiz Code Visual Studio Code extension, published on 1 Oct 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Wiz Code Visual Studio Code extension in versions 1.0.0 up to 1.5.3 and Wiz (legacy) Visual Studio Code extension in versions 0.13.0 up to 0.17.8 are vulnerable to local command injection if the user opens a maliciously crafted Dockerfile located in a path that has been marked as a "trusted folder" within Visual Studio Code, and initiates a manual scan of the file.
Weakness: CWE-77
Which versions are affected by CVE-2024-9145?
How do I fix CVE-2024-9145?
No fix has been published for CVE-2024-9145 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-9145 being exploited?
There is no known exploitation of CVE-2024-9145 in the wild and no public exploit code.
Sources
Also known as GHSA-5grv-4qg8-xxfq.