Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach directory-serve instance with --delete
-
DeliveryCraft file param with ../ traversal
-
ExploitSend request to file-remove endpoint
-
ExecutionMiddleware resolves path outside root
-
PersistDelete arbitrary file
-
ImpactData loss or denial of service
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 | Exploitation requires the directory-serve server (version <= 1.3.7) to be launched with the --delete option enabled, which activates the vulnerable lib/middleware/file-remove.js middleware; without --delete the file-removal endpoint is not available. Given that flag, no authentication or user interaction is needed (PR:N/UI:N) and the attack is remote over the network (AV:N) with low complexity (AC:L) against the file-delete endpoint. The main limiting factor is that --delete is a non-default operating mode, so only instances explicitly configured for deletion and reachable by the attacker are exploitable; impact is limited to files the service process has permission to delete. |
| Impact | The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H, score 9.1) indicates a network-reachable, low-complexity, unauthenticated attack with high integrity and availability impact and no confidentiality loss, which is consistent with a destructive file-deletion primitive. The real-world risk is materially gated by a deployment precondition the base score does not capture: the application must be running with the --delete option, which is not the default mode, so this is closer to a conditional than a universal exposure. No EPSS score, KEV listing, POC, or SSVC decision data was provided, so exploitation probability cannot be quantified from the input; the absence of KEV means there is no evidence of active exploitation. Net assessment: genuinely high severity where the delete feature is enabled and exposed, but the missing --delete flag in typical deployments and the niche footprint of the tool lower the aggregate real-world priority relative to the raw 9.1. |
| Exploit ScenarioDerived | An attacker who can reach a directory-serve instance started with --delete sends an HTTP request to the file-removal endpoint with a file parameter such as ../../../../etc/hosts or a path to application config or database files. The middleware resolves the traversal outside the served directory and deletes the target, letting an unauthenticated remote actor corrupt or disable the host with no credentials or user interaction. No public POC is identified, but the attack is trivial to construct from the disclosed source. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 10, 2026
Arbitrary file deletion in the cube-root/directory-serve Node.js utility (all versions through 1.3.7) lets an unauthenticated remote attacker remove files anywhere on the host by supplying ../ sequences in the file query parameter of the file-remove middleware. Exploitation requires the server to be started with the --delete option, and the CVSS 3.1 score of 9.1 (I:H/A:H) reflects the potential for destruction of configuration, data, or system files. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the flaw is trivially reproducible from the disclosed source path.
RemediationAI
No vendor-released patch version is identified at time of analysis, so the primary compensating control is to stop running directory-serve with the --delete option, which removes the vulnerable code path entirely and only costs the file-deletion feature. If deletion functionality is required, restrict network exposure by binding the service to localhost or placing it behind an authenticated reverse proxy and firewalling the listening port so only trusted clients can reach it, accepting the trade-off of reduced accessibility. Additionally run the tool as an unprivileged user in a chrooted or containerized directory so a traversal cannot reach sensitive files outside the intended root. Monitor the project repository (https://github.com/cube-root/directory-serve) for a patched release that canonicalizes and validates the file parameter, and upgrade to it once published; do not rely on an assumed fix version, as none is confirmed in the input data.
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
directory-serve is a lightweight command-line tool that exposes a local directory over HTTP, and its optional file-management feature is implemented in lib/middleware/file-remove.js. The vulnerability is a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / path traversal): the middleware takes the attacker-controlled req.query.file value and concatenates it into a filesystem path passed to a delete operation without canonicalizing or validating that the result stays within the intended served directory. Because Node's path/fs APIs will resolve ../ segments against the base directory, an attacker can escape the web root and reference arbitrary absolute or relative locations. The affected component is identified by CPE cpe:2.3:a:cube-root:directory-serve:*:*:*:*:*:*:*:* covering all releases up to and including 1.3.7.
Know when Directory Serve 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:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Remote unauthenticated traversal (AV:N/PR:N/UI:N); low complexity once --delete is enabled; arbitrary file deletion gives I:H/A:H with no data disclosure (C:N).
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
2DescriptionCVE.org
A path traversal vulnerability in cube-root/directory-serve through 1.3.7 allows an unauthenticated remote attacker to delete arbitrary files outside the intended served directory when the application is run with the --delete option. The lib/middleware/file-remove.js middleware does not sanitize the req.query.file parameter before using it to construct file system paths, enabling directory traversal via ../ sequences.
Executive ViewAI
The cube-root/directory-serve Node.js utility contains a critical vulnerability enabling unauthenticated attackers to delete arbitrary files on affected servers, with all versions through 1.3.7 impacted and no vendor patch currently available. Any organization running this utility with the --delete option enabled faces significant risk of operational disruption, data loss, or configuration compromise. Immediate action is required to identify affected deployments and implement interim controls pending removal of the affected component.
No vendor-released patch identified at time of analysis. Disable the --delete flag immediately on all deployments; implement firewall or network access controls to restrict remote connectivity to directory-serve endpoints; enable and monitor file deletion events through application and system audit logging; plan replacement with alternative file-serving solutions that do not have path-traversal vulnerabilities.
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.
EUVD-2026-55237
GHSA-gqqc-7rm5-p6gm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB