CVE-2026-97359
Received Received - Intake

Template Injection in HFS2 Leading to Remote Code Execution

Vulnerability report for CVE-2026-97359, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-24

Last updated on: 2026-09-24

Assigner: VulnCheck

Description

HFS2 version 2.4.0 and earlier contains a template injection vulnerability in the multipart upload handler that allows unauthenticated attackers to achieve remote code execution by embedding malicious template syntax in a filename. Attackers can craft a filename containing a closing template quoting sequence followed by an exec macro, which bypasses the authorization check in the dispatcher to execute arbitrary commands on the underlying host system.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-24
Last Modified
2026-09-24
Generated
2026-09-24
AI Q&A
2026-09-24
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
rejetto hfs to 2.4.0 (inc)
rejetto hfs From 2.0.0 (inc) to 2.4.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-97359 is a critical remote code execution (RCE) vulnerability in HFS2 versions 2.4.0 and earlier. It allows unauthenticated attackers to execute arbitrary commands on the host system by embedding malicious template syntax in a filename during a multipart upload. The attack bypasses authorization checks by using a closing template quoting sequence followed by an exec macro.

Detection Guidance

To detect this vulnerability, check if your system is running HFS2 version 2.4.0 or earlier. You can verify the version by inspecting the server response headers or application metadata. Additionally, monitor network traffic for multipart upload requests containing filenames with template syntax like %item-resource% or {:} followed by {.exec|...} macros.

Impact Analysis

This vulnerability allows attackers to take full control of the affected system without authentication. They can execute any command, steal data, install malware, or disrupt services. Since it affects the multipart upload handler, even failed upload attempts can trigger the exploit.

Compliance Impact

This vulnerability likely violates compliance requirements for data protection and system security in standards like GDPR and HIPAA. It enables unauthorized access and potential data breaches, which are major compliance violations. Organizations using vulnerable HFS2 versions risk fines and legal consequences.

Mitigation Strategies

Immediately upgrade HFS2 to a patched version if available. If upgrading is not possible, restrict HFS2 to trusted networks, filter malicious characters in the multipart filename parameter, run the service under a restricted account, and disable anonymous write permissions if uploads are unnecessary. Consider disabling the service entirely if not required.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-97359. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart