Description
mise manages dev tools like node, python, cmake, and terraform. Prior to 2026.3.10, mise processes .tool-versions files through the Tera template engine during parsing, with the exec() function registered, enabling arbitrary command execution. Unlike .mise.toml files, .tool-versions files are not subject to trust verification in non-paranoid mode. This means an attacker can place a malicious .tool-versions file in a git repository, and when a victim with mise activated cds into the directory, arbitrary commands execute without any trust prompt. This vulnerability is fixed in 2026.3.10.
Published: 2026-06-26
Score: 9.6 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

mise uses the Tera template engine to parse .tool-versions files, and the exec() function was registered in the engine. Versions before 2026.3.10 therefore allow arbitrary command execution from within those files. An attacker can inject a malicious .tool-versions file into a git repository; when a user with mise activated cd's into that directory, the template is processed without any trust prompt and the embedded command runs with the user's privileges. The primary impact is remote code execution in the context of the local user who uses mise.

Affected Systems

All installations of mise older than 2026.3.10 are vulnerable. The issue applies when the user runs mise in non‑paranoid mode and navigates into a repository that contains a malicious .tool-versions file. It does not affect files of type .mise.toml which are subject to trust verification.

Risk and Exploitability

The vulnerability has a CVSS score of 9.6, indicating critical severity. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog. Exploitation requires the attacker to supply a malicious .tool-versions file in a repository and the victim to have mise installed and to enable non‑paranoid mode when changing into that repository’s directory. Once the template is processed, the exec() function runs the attacker’s commands with the victim’s user privileges, making this a local privilege‑escalation–like attack that can be leveraged through supply‑chain vectors.

Generated by OpenCVE AI on June 26, 2026 at 18:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade mise to version 2026.3.10 or later, where the exec() function is removed from the template engine
  • If an upgrade is not immediately possible, configure mise to run in paranoid mode or otherwise disable template execution for .tool-versions files
  • Avoid cloning or entering directories from untrusted repositories and restrict the execution of untrusted .tool-versions files

Generated by OpenCVE AI on June 26, 2026 at 18:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fjj5-v948-whjj Mise Vulnerable to Arbitrary Code Execution via Tera Templates in .tool-versions Files (Trust Bypass)
History

Fri, 26 Jun 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Jdx
Jdx mise
Vendors & Products Jdx
Jdx mise

Fri, 26 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Description mise manages dev tools like node, python, cmake, and terraform. Prior to 2026.3.10, mise processes .tool-versions files through the Tera template engine during parsing, with the exec() function registered, enabling arbitrary command execution. Unlike .mise.toml files, .tool-versions files are not subject to trust verification in non-paranoid mode. This means an attacker can place a malicious .tool-versions file in a git repository, and when a victim with mise activated cds into the directory, arbitrary commands execute without any trust prompt. This vulnerability is fixed in 2026.3.10.
Title mise: Arbitrary Code Execution via Tera Templates in .tool-versions Files (Trust Bypass)
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-26T16:51:44.261Z

Reserved: 2026-03-23T15:23:42.217Z

Link: CVE-2026-33646

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-26T23:00:08Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')