/

CVE-2026-97360

Severity:

CRITICAL RISK

(10.0)

Missing Authorization (CWE-862) in HFS2 File Access

CVE-2026-97360

Deferred

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Unauthenticated Arbitrary File Access

Severity:

CRITICAL RISK

(10.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

HFS2 contains an unauthenticated authorization flaw that can allow attackers to access files outside the configured shared folder. Depending on the service account's filesystem permissions, an attacker may read, create, modify, append to, or delete files on the host without logging in.

Affected context

The vulnerability occurs in HFS2 deployments where the macro dispatcher can be reached without authentication and file paths are resolved without being confined to the shared directory. Risk depends on the permissions granted to the HFS service account and whether the exposed service can process attacker-controlled macro requests.

Exploit preconditions

  • Attack surface: Network-accessible HFS2 macro dispatch functionality
  • Required access: No authentication or prior account is required
  • Trigger point: A macro-driven file operation handled by the dispatcher and path resolver
  • Why exploitation is possible: The dispatcher lacks an effective authorization model, while path resolution may accept absolute paths outside the intended shared folder
  • Permission boundary: File operations are limited by the operating-system permissions of the HFS service account

Why this happens

The underlying defect is missing authorization enforcement at a file-operation boundary. HFS2 permits macro-dispatched operations to reach filesystem paths without consistently verifying that the requester is authorized or that the resolved path remains within the permitted shared directory. This behavior maps to CWE-862: Missing Authorization, because sensitive operations can be performed without an applicable access-control decision.

Potential impact

  • Attackers may read sensitive files accessible to the service account
  • Attackers may create, modify, or append to files
  • Attackers may delete files and disrupt service availability
  • Application templates or configuration data could be altered
  • Host confidentiality, integrity, and availability could be compromised
  • Modified files could enable follow-on compromise where other execution paths exist

General mitigation guidance

Mitigation generally centers on enforcing authorization before every file operation and treating path confinement as a mandatory security boundary.

Defensive patterns include:

  • Require authentication and explicit authorization for macro dispatch functionality
  • Resolve paths canonically and enforce containment within an approved shared-directory root
  • Reject absolute paths and traversal-equivalent representations where they are not required
  • Apply an allowlist of permitted file operations and file locations
  • Run the service under a dedicated least-privileged account with narrowly scoped filesystem access
  • Prefer read-only or isolated storage for content that does not require modification
  • Separate template processing from sensitive host filesystems

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis of macro dispatchers and file APIs for missing authorization checks
  • Code review signals such as filesystem operations occurring before identity, role, or path validation
  • Tests that verify canonical path containment across relative, absolute, and normalized path forms
  • Runtime monitoring for unauthenticated file requests, unusual file modifications, and deletions outside expected directories
  • Policy enforcement requiring authentication and least-privilege filesystem permissions for file-serving components
  • Automated security review tools that flag unrestricted path resolution and authorization gaps

Sources

SourceLink
github.comgithub.com/wgetnz/hfs2/blob/master/advisories/hfs2-template-macro-missing-authorization/README.md
vulncheck.comvulncheck.com/advisories/hfs2-unauthenticated-arbitrary-file-read-write-via-template-engine

Frequently asked

questions

Yes. Where the HFS2 service is network reachable and the vulnerable macro functionality is exposed, exploitation may be possible without a local account.

No authentication is expected to be required. The practical scope is constrained by the filesystem permissions of the HFS service account.

Enforce authentication and authorization before file operations, then canonicalize paths and require them to remain within an approved directory.

Use deny-by-default access controls, strict path-containment checks, least-privilege service accounts, and automated tests covering all file-operation entry points.

Find out what's already
exploitable in your codebase.