Skip to main content

Nanobot EUVDEUVD-2026-37933

| CVE-2026-48716 HIGH
Path Traversal (CWE-22)
2026-06-18 GitHub_M
8.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Identify Nanobot instance with WhatsApp bridge
  2. Delivery
    Send WhatsApp document with traversal fileName
  3. Exploit
    path.join resolves outside mediaDir
  4. Install
    Bridge writes attacker buffer to chosen path
  5. C2
    Overwrite authorized_keys or cron file
  6. Execute
    SSH in or wait for cron
  7. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

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

nanobot ≤ 0.1.5.post3

Affected Packages

euvd nanobot no fix

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

Vendor (GitHub_M) PRIMARY 8.7 HIGH
AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H
vuln.today AI 8.9 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:H/VA:H/SC:L/SI:H/SA:H

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating 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

EPSS Score
0.3%
Top 81% exploitable
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

CVE-2026-35589 CRITICAL
9.3 Apr 14

Cross-Site WebSocket Hijacking in nanobot personal AI assistant (versions before 0.1.5) allows remote websites to establ

CVE-2026-137463 CRITICAL
9.1 Nov 26

Man-in-the-middle interception of HKUDS nanobot's OpenAI Codex provider traffic in versions 0.1.4 through 0.4.0 can hand

CVE-2026-33654 HIGH
8.9 Mar 27

Remote code execution in nanobot personal AI assistant (versions prior to 0.1.6) allows unauthenticated attackers to exe

CVE-2026-121864 HIGH
7.7 Nov 17

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

CVE-2026-121865 HIGH
7.2 Nov 17

Authenticated workspace boundary escape in nanobot-ai 0.3.5 through 0.4.0 lets a standard WebSocket client holding a val

CVE-2026-49139 HIGH
7.0 Jun 01

Server-side request forgery in Nanobot (HKUDS) prior to 0.2.1 lets unauthenticated remote attackers exfiltrate Microsoft

CVE-2026-90809 MEDIUM
6.9 Sep 14

Argument injection in HKUDS nanobot's ExecTool shell execution guard allows remote unauthenticated attackers to bypass t

CVE-2026-19243 LOW POC
2.1 Aug 07

OS command injection in HKUDS nanobot 0.2.0 and 0.2.1 allows a low-privileged remote attacker to bypass the configured s

CVE-2026-19246 LOW POC
2.1 Aug 07

Server-side request forgery in HKUDS nanobot up to 0.2.1 allows authenticated remote attackers to make the server issue

CVE-2026-19244 LOW POC
2.0 Aug 07

MCP resource and prompt wrappers in HKUDS nanobot 0.2.0 and 0.2.1 bypass operator-defined `enabledTools` access restrict

CVE-2026-19245 LOW POC
1.9 Aug 07

Login-shell environment variable leakage in HKUDS nanobot up to 0.2.1 exposes sensitive environment variables to local l

CVE-2026-49140 MEDIUM
5.3 Jun 01

Nanobot's Matrix channel media download handler exhausts process memory and bandwidth when authenticated room members su

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