CVE-2017-1000212 alchemist.vim vulnerable to remote code execution
A malicious website can execute arbitrary Elixir code via the bundled server in the Alchemist Vim plugin, allowing remote code execution on the developer's machine.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-1000212?
CVE-2017-1000212 is a critical code injection vulnerability in n/a, published on 17 Nov 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Elixir's vim plugin, alchemist.vim is vulnerable to remote code execution in the bundled alchemist-server. A malicious website can execute requests against an ephemeral port on localhost that are then evaluated as elixir code.
Which versions are affected by CVE-2017-1000212?
2 open source packages ship an affected version, including alchemist.vim. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
alchemist.vim Hex | All versions | 1.3.2 |
alchemist.vim Hex | All versions | 1.3.2 |
Products include Alchemist-Elixir Alchemist-Server.
How do I fix CVE-2017-1000212?
Upgrade alchemist.vim to 1.3.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2017-1000212 being exploited?
There is no known exploitation of CVE-2017-1000212 in the wild and no public exploit code.
Sources
Also known as GHSA-6x65-vqp7-5r63.