Skip to main content
Vulnerability Database/CVE-2025-56499

CVE-2025-56499: Mihomo Information Disclosure Vulnerability

CVE-2025-56499 is an information disclosure flaw in Metacubex Mihomo that allows authenticated attackers to read arbitrary files with elevated privileges. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-56499 Overview

CVE-2025-56499 is an incorrect access control vulnerability in mihomo version 1.19.11, a rule-based proxy platform developed by MetaCubeX. Authenticated attackers with low-level privileges can read arbitrary files with elevated privileges by obtaining the external control key from the configuration file. The flaw is classified under CWE-284: Improper Access Control. Exploitation requires network access and valid low-privilege credentials, with no user interaction needed.

Critical Impact

Low-privileged authenticated attackers can access arbitrary files on the host running mihomo, exposing sensitive configuration data, credentials, and system files.

Affected Products

  • MetaCubeX mihomo version 1.19.11
  • Deployments exposing the external controller API
  • Systems using the external control key stored in configuration files

Discovery Timeline

  • 2025-11-18 - CVE-2025-56499 published to NVD
  • 2026-07-29 - Last updated in NVD database

Technical Details for CVE-2025-56499

Vulnerability Analysis

The vulnerability resides in the external control interface of mihomo, a Clash-compatible proxy platform. The external controller provides an HTTP API for runtime management of the proxy service. Access to this interface is gated by a secret key defined in the mihomo configuration file.

An authenticated attacker holding low-level privileges on the host can read the configuration file and extract the external control key. With the key in hand, the attacker authenticates to the external control API and leverages its file-handling endpoints to read arbitrary files with the privileges of the mihomo process. When mihomo runs as a privileged user, this results in disclosure of files the attacker could not access directly.

Root Cause

The root cause is improper access control [CWE-284] between the privilege level required to obtain the external control key and the privilege level granted by that key. The design assumes the key file is protected, yet any user able to read the configuration gains full administrative access to the proxy, including file read operations performed under the service account's identity.

Attack Vector

Exploitation proceeds in two steps. First, an attacker with low-privilege authenticated access to the host reads the mihomo configuration file and extracts the secret value used by the external controller. Second, the attacker issues HTTP requests to the external control endpoint, authenticates with the extracted key, and invokes functions that return the contents of arbitrary files. Because the service process typically runs with higher privileges than the attacker, this grants read access beyond the attacker's own file permissions. See the GitHub proof-of-concept repository for technical details.

Detection Methods for CVE-2025-56499

Indicators of Compromise

  • Unexpected HTTP requests to the mihomo external controller endpoint from local or internal addresses
  • Access log entries showing API calls referencing file paths outside of mihomo working directories
  • Reads of the mihomo configuration file by non-administrative user accounts
  • Successful authentication to the external controller from unusual source processes

Detection Strategies

  • Monitor process and file access telemetry for low-privileged accounts reading the mihomo configuration file
  • Inspect HTTP traffic to the external controller port for requests invoking file-read API functions
  • Correlate configuration file reads with subsequent authenticated API activity from the same user context

Monitoring Recommendations

  • Enable audit logging on the mihomo configuration directory and alert on reads by non-service accounts
  • Capture and retain external controller access logs for forensic review
  • Baseline normal external controller API usage and alert on deviations in endpoints or request volume

How to Mitigate CVE-2025-56499

Immediate Actions Required

  • Restrict filesystem permissions on the mihomo configuration file so only the service account and administrators can read it
  • Bind the external controller to 127.0.0.1 or a trusted management interface rather than exposing it broadly
  • Rotate the external control secret and audit which users had read access to the previous configuration
  • Run the mihomo service under a dedicated, least-privilege account to limit the scope of arbitrary file reads

Patch Information

No vendor patch is referenced in the NVD entry at the time of publication. Monitor the MetaCubeX mihomo repository for updated releases that address the external controller access control issue, and upgrade beyond version 1.19.11 once a fix is published.

Workarounds

  • Store the external controller secret in a file readable only by the mihomo service account using strict 0600 permissions
  • Disable the external controller entirely if runtime API management is not required by removing external-controller from the configuration
  • Place the external controller behind a reverse proxy that enforces additional authentication and network ACLs
bash
# Configuration example: restrict access to mihomo config and disable external controller
chown mihomo:mihomo /etc/mihomo/config.yaml
chmod 600 /etc/mihomo/config.yaml

# In config.yaml, bind controller to loopback only
# external-controller: 127.0.0.1:9090
# secret: "<rotated-strong-random-value>"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.