CVE-2026-97209
Insecure temporary file in mix deps.partition lets a local user execute code in another user's dependency build
Check your servers for CVE-2026-97209
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-97209 affects mix, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
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.
Severity (CVSS)
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- passive: a user has to take part without knowing, such as by viewing a page
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 30 Oct 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-379 Creation of Temporary File in Directory with Insecure Permissions
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
elixir
package
mix |
affected from 1.20.0-rc.4, before 1.20.5
Other versions: unaffected
|
|
elixir
package
elixir-lang/elixir |
affected 7f3d95b60c28ae3026a5c1bf943166391245bfd1 and later (unaffected from 55eb91220a1de14dc5aa27029d1f45b0f5832b2d, unaffected from 9adbe955c8664f4be77d879dd38c003dd39fa777)
Other versions: unaffected
|
Is my server affected?
Find the installed version of mix and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i mix
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-97209 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-97209RHEL, Rocky, Alma, Fedora
rpm -q mix
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-97209Alpine
apk list --installed | grep -i mixWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-97209
trivy image --scanners vuln IMAGE | grep CVE-2026-97209
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 55eb912 in elixir-lang/elixir github.com · patch
- Fix commit 9adbe95 in elixir-lang/elixir github.com · patch
Exploits and proof of concept
- Insecure temporary file in mix deps.partition lets a local user execute code in another user's dependency build github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-97209 cna.erlef.org · related
- OSV record EEF-CVE-2026-97209 osv.dev · related
- Introducing commit 7f3d95b in elixir-lang/elixir github.com · related
Source: the record CVE-2026-97209 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse