Skip to main content

NanoClaw CVE-2026-7875

| EUVDEUVD-2026-27873 CRITICAL
Path Traversal (CWE-22)
2026-05-06 VulnCheck GHSA-42p7-cwm7-4cjg
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise container via prompt injection
  2. Delivery
    Craft outbound message with traversal path
  3. Exploit
    Host reads attachment outside outbox
  4. Execution
    Exfiltrate sensitive file
  5. Persist
    Trigger outbox cleanup with traversal ID
  6. Impact
    Recursively 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

NanoClaw 7814e45

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

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Severity Changed
May 06, 2026 - 17:22 NVD
HIGH CRITICAL
CVSS changed
May 06, 2026 - 17:22 NVD
8.8 (HIGH) 9.3 (CRITICAL)

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.0%
Top 98% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy