Skip to main content
Vulnerability Database/CVE-2026-97360

CVE-2026-97360: HFS2 Path Traversal Vulnerability

CVE-2026-97360 is a path traversal vulnerability in HFS2 version 2.4.0 and earlier that allows unauthenticated attackers to access files outside shared folders. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97360 Overview

CVE-2026-97360 is an unauthenticated arbitrary file access vulnerability in HTTP File Server 2 (HFS2) version 2.4.0 and earlier. The flaw resides in the template engine, where the macro dispatcher lacks an authorization model and the path resolver fails to confine absolute paths to the shared folder. Remote attackers can read, write, append, and delete any file accessible to the HFS service account. The weakness is categorized as Missing Authorization [CWE-862] and affects the confidentiality, integrity, and availability of the host.

Critical Impact

Unauthenticated remote attackers can manipulate the template engine to perform arbitrary file operations outside the shared folder, enabling full host compromise.

Affected Products

  • HFS2 version 2.4.0
  • HFS2 versions prior to 2.4.0
  • Deployments exposing the HFS2 web interface to untrusted networks

Discovery Timeline

  • 2026-09-24 - CVE-2026-97360 published to NVD
  • 2026-09-24 - Last updated in NVD database

Technical Details for CVE-2026-97360

Vulnerability Analysis

HFS2 exposes a template engine that processes macros embedded in requests and template files. The macro dispatcher executes file-oriented macros without validating the identity or privileges of the caller. The path resolver accepts absolute filesystem paths and does not restrict operations to the configured shared folder. The combination allows an unauthenticated attacker to invoke file read, write, append, and delete macros against any path the HFS service account can reach.

Successful exploitation enables theft of configuration files, service credentials, and application data. Attackers can also write arbitrary content to disk, which supports persistence, lateral movement, and code execution through overwritten scripts or scheduled task definitions. Deletion of system or application files leads to denial of service on the host.

Root Cause

Two defects combine to create the vulnerability. The macro dispatcher does not enforce authorization checks before invoking file-handling macros, which violates least privilege for the exposed interface. The path resolution routine does not canonicalize or constrain absolute paths against the shared folder root, which breaks the file access boundary. Both defects map to [CWE-862] Missing Authorization.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker sends crafted requests to the HFS2 HTTP endpoint that invoke template macros with absolute path parameters. The macro dispatcher processes the request under the HFS service account context and performs the requested file operation. Full technical details are documented in the GitHub Security Advisory and the VulnCheck Security Advisory.

Detection Methods for CVE-2026-97360

Indicators of Compromise

  • HTTP requests to HFS2 containing template macro syntax that references absolute filesystem paths outside the shared folder.
  • Unexpected read, write, or deletion events on sensitive files owned by the HFS service account, including configuration, script, and credential files.
  • Outbound data transfers from the HFS2 host following anomalous request patterns to the web interface.

Detection Strategies

  • Inspect HFS2 access logs for requests containing macro delimiters paired with path separators or drive letters that fall outside the shared directory.
  • Correlate web request logs with filesystem audit events to identify macro invocations that resulted in file modification outside the configured share root.
  • Alert on process behavior where the HFS2 process writes to directories such as C:\Windows, startup folders, or user profile script locations.

Monitoring Recommendations

  • Enable filesystem auditing on hosts running HFS2 and forward events to a central analytics platform for correlation.
  • Monitor network ingress to HFS2 service ports and baseline normal request volumes to detect scanning or exploitation bursts.
  • Track EPSS and vendor advisory updates for CVE-2026-97360 given the current EPSS score of 0.317%.

How to Mitigate CVE-2026-97360

Immediate Actions Required

  • Restrict network access to the HFS2 web interface using firewall rules or a reverse proxy that enforces authentication.
  • Run the HFS2 service under a dedicated low-privilege account with filesystem access limited to the shared folder.
  • Audit the HFS2 host for signs of unauthorized file access, modification, or deletion since the service was first exposed.

Patch Information

No vendor patch is identified in the available advisory data for HFS2 2.4.0 and earlier. Review the GitHub Security Advisory and the VulnCheck Security Advisory for current remediation guidance and migration options.

Workarounds

  • Remove HFS2 from untrusted networks and consider migrating to a maintained file transfer product with an enforced authorization model.
  • Place HFS2 behind a reverse proxy that strips or blocks template macro syntax from inbound request paths and parameters.
  • Apply operating system access control lists so the HFS service account cannot read or write files outside the intended shared directory.
bash
# Example Windows ACL hardening for the HFS service account
icacls "C:\HFS2\Shared" /inheritance:r
icacls "C:\HFS2\Shared" /grant "hfs_service:(OI)(CI)(RX)"
icacls "C:\" /deny "hfs_service:(W,D)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.