Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
MediumPublic exploit

Path Traversal in OpenClaw MEDIA path extraction

IdentifiersCVE-2026-25475CWE-22· Improper Limitation of a Pathname…

OpenClaw before version 2026.1.30 contains an arbitrary file read / local file inclusion issue in the isValidMedia() function in src/media/parse.ts. The function insufficiently validates MEDIA: paths and permits absolute filesystem paths, home-directory paths, and directory traversal sequences. As a result, an agent can be induced to access attacker-specified local paths such as MEDIA:/path/to/file, causing OpenClaw to read files outside any intended media directory restrictions and return their contents to the user or channel. The issue is effectively a path traversal leading to arbitrary local file read and data exfiltration.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows reading and exfiltrating any file accessible to the OpenClaw process account. This can expose sensitive local data including SSH keys, cloud credentials, API tokens, application secrets, configuration files, and system files such as /etc/passwd and potentially /etc/shadow where readable. The primary impact is confidentiality compromise, with downstream risk of account takeover, cloud compromise, lateral movement, and broader environment compromise if harvested secrets are reused.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, disable or strictly restrict the MEDIA: path extraction feature. Reject MEDIA: inputs containing absolute paths, home-directory references (~), or traversal elements such as ../ and ./. Enforce canonicalization and allowlisting to a dedicated media directory, and ensure resolved paths cannot escape that directory. Run OpenClaw under a least-privilege account with minimal filesystem permissions to limit readable files and reduce blast radius.

Remediation

Patch, then assume compromise.

Upgrade OpenClaw to version 2026.1.30 or later. Verify the deployed build includes the path-validation fix in isValidMedia(), specifically proper path canonicalization/realpath handling and enforcement that resolved paths remain within an intended allowlisted media directory. Review whether any secrets accessible to the OpenClaw runtime may have been exposed prior to patching and rotate credentials as appropriate.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
OpenclawOpenclawapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.