Elixir code execution in Mix deps.partition temporary config files
elixir-lang elixir
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| elixir-lang elixir |
| No fix yet |
| elixir-lang elixir |
| No fix yet |
Original description
Insecure Temporary File vulnerability in Mix deps.partition in Elixir allows a local user to execute code as another user via a swapped partition config file. Partitioned dependency compilation passes the project configuration to each partition VM through a file in a fixed-name directory under the shared system temporary directory, and the partition trusts what it reads back. Another local user on the same host can exploit this during a mix deps.compile run that uses partitioned compilation.