Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise container via prompt injection
-
DeliveryCraft outbound message with traversal path
-
ExploitHost reads attachment outside outbox
-
ExecutionExfiltrate sensitive file
-
PersistTrigger outbox cleanup with traversal ID
-
ImpactRecursively delete host directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must have code execution inside a NanoClaw container (PR:L in CVSS vector). This requires either: (1) deployment of a malicious agent binary in the container, (2) successful prompt injection attack against an AI agent to control message generation, or (3) compromise of an existing container process. The vulnerability affects NanoClaw deployments where containers have any ability to specify message_out.id values or content.files arrays in outbound messages. Exploitation requires no user interaction (UI:N) and is possible against default NanoClaw configurations with no special features enabled. Limiting factors: attack vector is local (AV:L) requiring prior container access rather than remote network exploitation; attack is limited to read access and deletion rather than arbitrary code execution on the host (though exfiltrated data or deleted directories may enable further attacks); detection is possible through filesystem monitoring of unexpected path access patterns outside session directories. |
| Impact | CVSS 9.3 (Critical) with local attack vector, low complexity, and low privileges required. Despite the critical score, real-world risk depends heavily on deployment context. The vulnerability requires the attacker to already have code execution inside a NanoClaw container (PR:L), making this a container escape rather than initial access. Attack complexity is low (AC:L) because exploitation requires only crafted JSON message values, easily achieved through prompt injection against an AI agent or by a malicious agent binary. The CVSS vector shows high impact across all CIA dimensions for both vulnerable (V) and subsequent (S) systems, reflecting the container-to-host escape scenario. EPSS data not provided, limiting real-world exploitation probability assessment. No CISA KEV listing indicates no confirmed widespread exploitation. The GitHub PR shows comprehensive test coverage for multiple attack vectors (path traversal in filenames, symlink following, unsafe message IDs, recursive deletion), suggesting the vendor identified all major variants. Primary risk is to multi-tenant NanoClaw deployments where untrusted agent code runs, or single-tenant systems vulnerable to prompt injection. Mitigating factor: exploitation requires prior container compromise, limiting attack surface compared to network-accessible vulnerabilities. Missing data: EPSS score, active exploitation reports, production deployment prevalence. |
| Exploit ScenarioDerived | An attacker achieves code execution inside a NanoClaw container through prompt injection against an AI agent, causing it to generate a malicious outbound message with content.files set to ['../../../../etc/shadow']. When the host-side readOutboxFiles processes this message, it constructs a path outside the intended outbox directory and reads the sensitive file, returning contents to the container. In a destructive variant, the attacker supplies messages_out.id as '../../../../var/lib/important-data' and triggers outbox cleanup, causing the host to recursively delete the target directory. The source code test cases demonstrate both scenarios are exploitable with simple JSON payloads. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 06, 2026
Path traversal in NanoClaw's container filesystem boundary allows compromised containers or prompt-injected agents to escape isolation and read arbitrary host files via crafted message IDs and attachment paths, with potential for recursive deletion of host directories during outbox cleanup. The vulnerability exploits insufficient validation of outbound attachment filenames and symlink resolution in the host-side message handling code. Upstream fix available (GitHub commit 7814e45) but released patched version not independently confirmed. No public exploit identified at time of analysis, though proof-of-concept test cases demonstrate both file exfiltration and destructive cleanup paths.
RemediationAI
Apply the upstream fix by updating to NanoClaw code at or after commit 7814e45570edf0024a1a5c2ba9fbc9cb3a49f7f7 available at https://github.com/qwibitai/nanoclaw/commit/7814e45570edf0024a1a5c2ba9fbc9cb3a49f7f7 and reviewed in PR #2001 at https://github.com/qwibitai/nanoclaw/pull/2001. Released patched version number not confirmed from available data; verify with vendor for tagged release. If immediate patching is not feasible, implement compensating controls: (1) restrict container /workspace write access to prevent symlink pre-creation in inbox directories (trade-off: may break legitimate agent file operations), (2) implement additional message ID validation at the application layer before passing to NanoClaw session manager (e.g., regex whitelist for alphanumeric-only IDs), (3) run NanoClaw host processes with minimal filesystem permissions using mandatory access controls (SELinux, AppArmor) to contain damage from path traversal (trade-off: complex policy development, may interfere with normal operations), (4) deploy filesystem monitoring to detect unexpected access patterns outside session directories (detection-only, does not prevent exploitation). Note that workarounds (2-4) are partial mitigations; only the vendor patch fully addresses all attack vectors including symlink following and recursive deletion.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NanoClaw is an AI agent framework that runs containerized agents with isolated filesystem access. The vulnerability exists in the host-side TypeScript code (host-core.ts, session-manager.ts) that processes messages_out.id and content.files values from containers. CWE-22 (path traversal) occurs because the readOutboxFiles and clearOutbox functions failed to validate that supplied message IDs and attachment filenames resolve within the intended session outbox directory. The code accepts traversal sequences like '../../../..' in both message IDs (used to construct outbox paths) and attachment filenames (used for file reads). Additionally, the host followed symlinks created by containers, allowing a container with /workspace write access to pre-create inbox/<msgId> as a symlink pointing outside the session directory. The fix adds path.basename() validation and realpath resolution checks to ensure all file operations stay within session boundaries, plus the 'wx' flag to prevent following pre-existing symlinks during inbound attachment writes.
Know when Nanoclaw 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
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
NanoClaw contains a host/container filesystem boundary vulnerability in outbound attachment handling and outbox cleanup that allows a compromised or prompt-injected container to read files outside the intended outbox directory by supplying crafted messages_out.id and content.files values or creating symlinked outbox files. Attackers can exploit this vulnerability to trigger host-side reads of arbitrary files and in some cases achieve recursive deletion of paths outside the intended cleanup target.
Executive ViewAI
NanoClaw versions prior to the patched release contain a critical container escape vulnerability (CVSS 9.3) that allows compromised containers to read arbitrary host files and potentially delete host directories by exploiting insufficient validation in message handling. This directly threatens the security isolation model of containerized deployments and could enable attackers to access sensitive host data or cause destructive system damage. Immediate patching is required for all NanoClaw deployments.
Apply vendor patch. Until patch deployment is complete: restrict NanoClaw container permissions to read-only root filesystem where operationally feasible; disable or isolate outbox cleanup functionality; implement strict input validation for message IDs and attachment paths at the application layer; monitor host filesystem access patterns for unauthorized traversal attempts.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Privilege escalation in NanoClaw before 2.1.17 lets remote attackers with a valid questionId approve or reject privilege
Symlink following in NanoClaw's agent-to-agent file forwarding exposes arbitrary host-readable files to container-contro
Privilege escalation in NanoClaw before 2.1.17 allows confined agent containers to bypass their architectural confinemen
Link-following (symlink) handling in NanoClaw's agent-to-agent attachment forwarding lets an authenticated, low-privileg
Improper authorization in nanocoai NanoClaw's add_mcp_server endpoint allows authenticated attackers with low privileges
Improper privilege management in NanoClaw (versions up to 2.0.64) allows authenticated remote attackers to abuse the `ha
Improper authorization in NanoClaw's MCP Server Approval component allows local attackers to bypass security controls by
Privilege escalation in NanoClaw before 2.1.0 lets scoped admins cross agent-group authorization boundaries by submittin
EUVD-2026-27873
GHSA-42p7-cwm7-4cjg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB