Description
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.
Published: 2026-08-10
Score: 9.1 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal flaw in cube-root/directory-serve allows an unauthenticated remote attacker to delete files located outside the intended served directory when the application is run with the "--delete" option. The flaw stems from the lack of sanitization on the req.query.file parameter, enabling traversal via "../" sequences. As a result, an attacker can remove critical files, compromise data integrity, or disrupt service availability.

Affected Systems

The affected product is cube-root:directory-serve, affecting all releases through 1.3.7. No other vendors or versions are listed as impacted.

Risk and Exploitability

The vulnerability has a CVSS score of 9.1, indicating a high severity level. Exploitation requires no authentication and capitalizes on easy input manipulation by an unauthenticated remote attacker. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, but the combination of a high CVSS score and straightforward exploitation vector suggests a notably high risk to systems running vulnerable versions.

Generated by OpenCVE AI on August 10, 2026 at 12:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade directory-serve to a version newer than 1.3.7 where file‑parameter sanitization is applied.
  • In the upgraded code, ensure the file path is normalized and validated to remain inside the intended directory, addressing CWE‑22.
  • Disable the --delete option if deletion is not required.
  • Enforce additional controls such as IP whitelisting or mandatory authentication for any paths that expose the delete functionality.

Generated by OpenCVE AI on August 10, 2026 at 12:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
Description 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. 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.

Mon, 10 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
Description 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.
Title cube-root directory-serve - Unauthenticated Path Traversal Arbitrary File Deletion
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T13:10:20.674Z

Reserved: 2026-08-10T10:32:53.853Z

Link: CVE-2026-72569

cve-icon Vulnrichment

Updated: 2026-08-10T13:10:16.075Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T13:00:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')