CVE-2026-97359

HFS2 2.4.0 RCE via Multipart Upload Filename Template Injection

Published Sep 24, 2026 CVSS 4.0 · 10 Critical EPSS 5.1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a template injection flaw in the multipart upload handler of HFS2, allowing an unauthenticated attacker to execute arbitrary commands on the host by embedding malicious template syntax within the filename. This flaw bypasses the intended authorization checks in the dispatcher, effectively enabling remote code execution on the underlying system.

Affected Systems

Rejetto HFS2 versions 2.4.0 and earlier are vulnerable. The issue is specific to the proprietary HFS2 web server product

Risk and Exploitability

The CVSS score of 10.0 indicates critical severity. The EPSS score is 6%, indicating a moderate exploitation likelihood, and the vulnerability is not listed in the CISA KEV catalog, but the attack vector is unauthenticated remote exploitation via an HTTP multipart request. An attacker can construct a filename containing template syntax that closes the current context and injects an exec macro, thereby executing arbitrary commands without any authentication. Given the critical CVSS score, the risk to exposed instances is high, and deployment of the vulnerable version poses a significant threat to confidentiality, integrity, and availability of affected hosts.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade HFS2 to version 2.4.1 or later where the injection vulnerability is fixed
  • Disable or remove the multipart upload functionality if it is not required, or block its endpoint with network-level controls
  • If the upgrade cannot be performed immediately, restrict upload access to trusted IPs only and monitor for suspicious filenames in upload logs

Generated by OpenCVE AI on October 27, 2026 at 14:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title HFS2 2.4.0 RCE via Multipart Upload Filename Template Injection
First Time appeared Rejetto
Rejetto hfs2
Weaknesses CWE-1336
CPEs cpe:2.3:a:rejetto:hfs2:*:*:*:*:*:*:*:*
Vendors & Products Rejetto
Rejetto hfs2
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 10, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 29, 2026, 2:44 AM
Reserved
Sep 24, 2026, 1:24 PM
Status
Deferred
Published
Sep 24, 2026, 2:18 PM
Modified
Sep 29, 2026, 3:17 AM