CVE-2026-97209Insecure temporary file in mix deps.partition lets a local user execute code in another…
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. Mix.Tasks.Deps.Partition.server/4 in lib/mix/lib/mix/tasks/deps.partition.ex creates the directory with File.mkdir_p/1, which accepts an existing directory without checking its owner, so a user who created it first can replace the file before client/0 reads it. This issue affects mix: from 1.20.0-rc.4 before 1.20.5.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | elixir | Fix pending | UBUNTU-CVE-2026-97209 | |
| Ubuntu 16.04 | elixir | Fix pending | UBUNTU-CVE-2026-97209 | |
| Ubuntu 14.04 | elixir | Fix pending | UBUNTU-CVE-2026-97209 | |
| Debian 14 | elixir-lang | Fixed | 1.20.5+dfsg-1 | DEBIAN-CVE-2026-97209 |
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- elixir-lang elixir: affected: 1.20.0-rc.4 to before 1.20.5; fixed in
1.20.5 - elixir-lang elixir: affected: 7f3d95b60c28ae3026a5c1bf943166391245bfd1 and later; fixed in
55eb91220a1de14dc5aa27029d1f45b0f5832b2d,9adbe955c8664f4be77d879dd38c003dd39fa777
Workaround: On a multi-user host, set TMPDIR to a private per-user directory with mode 0700 before running Mix, so that System.tmp_dir/0 resolves to a location other users cannot pre-create or read. Alternatively, keep partitioned compilation disabled by leaving MIX_OS_DEPS_COMPILE_PARTITION_COUNT unset or at 1, which keeps the configuration inside the parent process.
Vendor advisories:
- https://github.com/elixir-lang/elixir/security/advisories/GHSA-96q6-xhwp-fc8q (vendor-advisory)
- https://github.com/elixir-lang/elixir/commit/55eb91220a1de14dc5aa27029d1f45b0f5832b2d (patch)
- https://github.com/elixir-lang/elixir/commit/9adbe955c8664f4be77d879dd38c003dd39fa777 (patch)
References
- https://github.com/elixir-lang/elixir/security/advisories/GHSA-96q6-xhwp-fc8q
- https://cna.erlef.org/cves/CVE-2026-97209.html
- https://osv.dev/vulnerability/EEF-CVE-2026-97209
- https://github.com/elixir-lang/elixir/commit/7f3d95b60c28ae3026a5c1bf943166391245bfd1
- https://github.com/elixir-lang/elixir/commit/55eb91220a1de14dc5aa27029d1f45b0f5832b2d
- https://github.com/elixir-lang/elixir/commit/9adbe955c8664f4be77d879dd38c003dd39fa777
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.