Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Nanobot instance with WhatsApp bridge
-
DeliverySend WhatsApp document with traversal fileName
-
Exploitpath.join resolves outside mediaDir
-
InstallBridge writes attacker buffer to chosen path
-
C2Overwrite authorized_keys or cron file
-
ExecuteSSH in or wait for cron
-
ImpactExecute commands as service user
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 | Target must be running Nanobot 0.1.5.post3 or earlier with the WhatsApp bridge (bridge/src/whatsapp.ts) enabled and connected to a WhatsApp account the attacker can message; the attacker must know or guess that account/number to deliver a document message. No authentication to Nanobot itself is required (PR:N) and no user interaction on the victim host (UI:N), but exploitation is limited by: (1) needing the WhatsApp bridge feature actively configured (not default for all deployments), (2) AC:H reflecting the need to choose a writable target path under the Nanobot process's UID, and (3) achieving code execution requires picking a path the OS will act on (authorized_keys, cron, systemd unit, Node require cache, etc.), which depends on host layout and process privileges. |
| Impact | The 8.7 CVSS score (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H) reflects a network-reachable, unauthenticated flaw with high integrity and availability impact and a changed scope - appropriate for a write-anywhere primitive that crosses the application's trust boundary to the host filesystem. AC:H is reasonable because the attacker must reach a Nanobot instance configured as a WhatsApp bridge and know/guess writable target paths on the host. C:N is conservative; in practice, file overwrite of authorized_keys, cron jobs, or Node startup files trivially escalates to RCE and full confidentiality compromise, so real-world impact likely exceeds the vector's confidentiality rating. No EPSS, KEV, or SSVC signals were provided, and no public exploit identified at time of analysis - but the bug is mechanically trivial to weaponize once an instance is reachable. Treat as high-priority for any deployment exposing the WhatsApp bridge. |
| Exploit ScenarioDerived | An attacker sends a WhatsApp document message to a phone number bridged into a target Nanobot instance, setting the message's fileName attribute to '../../../.ssh/authorized_keys' (or '../../../../etc/cron.d/pwn') and the document body to attacker-supplied content (an SSH public key or cron entry). The bridge downloads the buffer and writes it to the traversed path under the service account's privileges, giving the attacker either SSH login or scheduled command execution on the host. No public exploit identified at time of analysis, but the bug is a textbook path.join traversal and reproducing it requires only a standard WhatsApp client and a reachable bridged number. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 18, 2026
Arbitrary file write in HKUDS Nanobot's WhatsApp bridge (versions 0.1.5.post3 and prior) allows remote unauthenticated attackers to write attacker-controlled content to arbitrary filesystem locations by sending a WhatsApp document message with a path-traversal sequence in its fileName field. Because both the destination path and the file content are attacker-controlled, exploitation yields a write-anywhere primitive that can be escalated to remote code execution (e.g., by overwriting authorized_keys or shell startup files). No public exploit identified at time of analysis; a fix is planned for version 0.1.5.post4.
RemediationAI
No vendor-released patch identified at time of analysis; the vendor states a fix is planned for version 0.1.5.post4, so upgrade to that release as soon as it ships (track https://github.com/HKUDS/nanobot/security/advisories/GHSA-3f63-vcp3-hvqr). Until the patched release is available, disable the WhatsApp bridge entirely if it is not in active use (eliminates the attack surface but breaks WhatsApp integration), or apply a local patch in bridge/src/whatsapp.ts to sanitize documentMessage.fileName before path construction - strip directory separators and '..' segments, then validate that path.resolve(mediaDir, outFilename) still starts with path.resolve(mediaDir) and reject otherwise (low side effects beyond rejecting unusual filenames). As defense in depth, run the Nanobot process as an unprivileged user with no write access to SSH keys, cron directories, or shell rc files, ideally inside a container with a read-only root filesystem and a dedicated writable media volume.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nanobot is a personal AI assistant by HKUDS that exposes a WhatsApp bridge implemented in TypeScript/Node.js (bridge/src/whatsapp.ts). The bridge receives incoming WhatsApp messages, downloads any attached media via the Baileys-style documentMessage handling, and persists the binary buffer to disk. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory): the code concatenates a prefix with documentMessage.fileName and feeds the unsanitized string into Node.js's path.join(mediaDir, outFilename). Contrary to a common misconception, path.join does NOT clamp the result inside its first argument - it normalizes '..' segments, so a fileName like '../../../.ssh/authorized_keys' resolves outside mediaDir. The CPE cpe:2.3:a:hkuds:nanobot:*:*:* confirms all versions of the hkuds/nanobot application up to and including 0.1.5.post3 are affected.
Know when Nanobot 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
AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H
Network-reachable WhatsApp bridge with no auth (AV:N/PR:N/UI:N); AC:H because attacker needs bridge enabled and a viable writable target path; scope changes to host filesystem; C:L since written files may be readable, I:H/A:H from write-anywhere.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
nanobot is a personal AI assistant. In versions 0.1.5.post3 and prior, the WhatsApp bridge in bridge/src/whatsapp.ts constructs a filesystem path using the fileName field from an incoming WhatsApp document message without sanitization. The WhatsApp bridge downloads media attachments and writes them to disk using a filename derived from the sender's message via documentMessage.fileName, which is concatenated with a prefix and its raw value is passed directly to path.join(mediaDir, outFilename). Node.js path.join resolves .. components, allowing an attacker to escape the intended media/ directory by sending a document with a crafted fileName such as ../../../.ssh/authorized_keys. Because the attacker also controls the file content (the downloaded buffer), this is a write-anywhere primitive - both path and content are attacker-controlled. A fix for this issue is planned for version 0.1.5.post4.
Executive ViewAI
HKUDS Nanobot's WhatsApp bridge (versions 0.1.5.post3 and prior) exposes organizations to code execution attacks via message attachments, enabling attackers to compromise system integrity and access sensitive data. Any organization deploying this product risks unauthorized system control through routine WhatsApp communications. Immediate action is required to inventory deployment and implement protective controls.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement network segmentation to restrict WhatsApp bridge access to least-privileged networks; (2) Apply strict input validation and sanitization of fileName parameters to block path traversal sequences; (3) Enforce principle of least privilege for bridge service file system access permissions; (4) Enable file system and process auditing to detect anomalous write activity; (5) Consider operational suspension of the bridge until patch 0.1.5.post4 is available and deployed.
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.
Cross-Site WebSocket Hijacking in nanobot personal AI assistant (versions before 0.1.5) allows remote websites to establ
Man-in-the-middle interception of HKUDS nanobot's OpenAI Codex provider traffic in versions 0.1.4 through 0.4.0 can hand
Remote code execution in nanobot personal AI assistant (versions prior to 0.1.6) allows unauthenticated attackers to exe
Sandbox escape in nanobot-ai 0.2.1 through 0.4.0 allows a low-privileged attacker who can drive the agent to induce crea
Authenticated workspace boundary escape in nanobot-ai 0.3.5 through 0.4.0 lets a standard WebSocket client holding a val
Server-side request forgery in Nanobot (HKUDS) prior to 0.2.1 lets unauthenticated remote attackers exfiltrate Microsoft
Argument injection in HKUDS nanobot's ExecTool shell execution guard allows remote unauthenticated attackers to bypass t
OS command injection in HKUDS nanobot 0.2.0 and 0.2.1 allows a low-privileged remote attacker to bypass the configured s
Server-side request forgery in HKUDS nanobot up to 0.2.1 allows authenticated remote attackers to make the server issue
MCP resource and prompt wrappers in HKUDS nanobot 0.2.0 and 0.2.1 bypass operator-defined `enabledTools` access restrict
Login-shell environment variable leakage in HKUDS nanobot up to 0.2.1 exposes sensitive environment variables to local l
Nanobot's Matrix channel media download handler exhausts process memory and bandwidth when authenticated room members su
EUVD-2026-37933
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB