Automated Threat Modeling

Chaos Mesh CVE-2025-59359: Brief Summary of Critical OS Command Injection in cleanTcs Mutation

A brief summary of CVE-2025-59359, a critical OS command injection vulnerability in the cleanTcs mutation of Chaos Mesh's Chaos Controller Manager. Unauthenticated in-cluster attackers can use the flaw to execute arbitrary commands, potentially leading to remote code execution across Kubernetes clusters. The post covers the technical details, affected versions, and references.

CVE Analysis

8 min read

ZeroPath CVE Analysis
ZeroPath CVE Analysis

2025-09-15

Chaos Mesh CVE-2025-59359: Brief Summary of Critical OS Command Injection in cleanTcs Mutation
Experimental AI-Generated Content

This CVE analysis is an experimental publication that is completely AI-generated. The content may contain errors or inaccuracies and is subject to change as more information becomes available. We are continuously refining our process.

If you have feedback, questions, or notice any errors, please reach out to us.

[email protected]

Introduction

A critical flaw in Chaos Mesh lets unauthenticated in-cluster attackers achieve remote code execution across an entire Kubernetes cluster. The flaw is CVE-2025-59359, an OS command injection vulnerability in the cleanTcs mutation of the Chaos Controller Manager, and it is a severe risk for organizations that run chaos engineering in production.

About Chaos Mesh: Chaos Mesh is an open-source chaos engineering platform for Kubernetes. It is an incubating project of the Cloud Native Computing Foundation (CNCF), and organizations such as Tencent and Meituan have widely adopted it for resilience testing of distributed systems. Its privileged access to cluster resources and its integration with CI/CD pipelines make it a critical component in many cloud-native environments.

Technical Information

CVE-2025-59359 is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command). The vulnerability is in the cleanTcs mutation function, part of the Chaos Controller Manager component of Chaos Mesh. This function cleans up Linux traffic control (TC) configurations after network chaos experiments.

The root cause is improper input validation. The Controller Manager concatenates user-supplied parameters from chaos experiment specifications directly into the shell commands it executes. If these parameters are not sanitized, attackers can inject arbitrary shell commands. When the vulnerable mutation is triggered, the injected commands run with the privileges of the Controller Manager process, which typically has broad permissions in the Kubernetes environment.

The risk rises significantly when CVE-2025-59359 is chained with CVE-2025-59358, which allows unauthenticated access to the mutation. Together, the two let an attacker with only in-cluster network access achieve remote code execution across the cluster.

No public code snippets are available for this vulnerability. The references and vendor advisories confirm the technical details.

Affected Systems and Versions

  • Product: Chaos Mesh (Chaos Controller Manager component)
  • Vulnerable Function: cleanTcs mutation
  • Affected versions: The public references do not list specific affected versions. Users should consult the official GitHub PR 4702 and vendor advisories for exact version information and upgrade guidance.
  • Vulnerable configurations: Deployments where unauthenticated in-cluster users can reach the Chaos Controller Manager and where network chaos experiments are enabled.

Vendor Security History

Chaos Mesh's privileged operational model has led to earlier vulnerabilities involving privilege escalation and code execution, which the project has addressed. It has responded to critical issues with timely patches and public advisories. As a CNCF incubating project, Chaos Mesh is subject to community-driven security review, but its broad permissions and integration with cluster infrastructure continue to make it a high-value target for attackers.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization