CVE-2026-22171
8.2OpenClaw · OpenClaw
OpenClaw contains a path traversal vulnerability in the Feishu media download flow, allowing unauthenticated attackers to write arbitrary files to the host system.
Executive summary
A path traversal vulnerability in OpenClaw allows an unauthenticated remote attacker to write arbitrary files to the filesystem, posing a significant risk of system compromise.
Vulnerability
The application is susceptible to a path traversal vulnerability (CWE-22) within the Feishu media download process, specifically in extensions/feishu/src/media.ts, where untrusted media keys are interpolated into file paths without sufficient validation. This flaw allows an unauthenticated attacker to escape the intended temporary directory and write files to arbitrary locations on the host server.
Business impact
The ability to write arbitrary files to the server can lead to full system compromise, including the potential for remote code execution if an attacker overwrites sensitive configuration files or places malicious scripts in accessible directories. With a CVSS score of 8.2, this vulnerability represents a high risk to business operations, potentially resulting in unauthorized data access, service disruption, and long-term persistence for an attacker.
Remediation
Immediate Action: Upgrade the OpenClaw package to version 2026.2.19 or later to incorporate the necessary input validation fixes.
Proactive Monitoring: Monitor filesystem activity for unexpected file creation or modifications, particularly within directories outside of the designated temporary storage path.
Compensating Controls: Deploy a Web Application Firewall (WAF) or intrusion detection system configured to inspect and block incoming requests containing directory traversal sequences, such as "../", within the Feishu media download parameters.
Exploitation status
Public Exploit Available: No (exploit_available: unknown)
Analyst recommendation
Given the high severity of this vulnerability and the potential for remote file writes, administrators should prioritize updating to version 2026.2.19 immediately. Failure to patch this flaw leaves the underlying system exposed to unauthorized file manipulation and potential total system takeover.
More OpenClaw CVEs
Sources
Originally found and disclosed by Sean Nejad (@allsmog), per the CVE Program record.
- GitHub Security Advisory (GHSA-vj3g-5px3-gr46) Vendor advisory
- Patch Commit #1 Patch commit
- Patch Commit #2 Patch commit
- Patch Commit #3 Patch commit
- VulnCheck Advisory: OpenClaw < 2026.2.19 - Path Traversal in Feishu Media Temporary File Naming Third-party advisory