CVE-2026-97359 Details
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.
A template injection vulnerability has been identified in Rejetto HTTP File Server (HFS) version 2.4.0 and earlier. This vulnerability resides in the multipart upload handler, where it allows unauthenticated attackers to execute remote code. The issue arises because the server-side template engine does not properly escape filenames before processing them. Attackers can exploit this by crafting a filename that includes malicious template syntax, which is then executed as a command on the host system.
Users are advised to update to a patched version of HFS2 that addresses this vulnerability. If uploading files is not necessary, consider disabling anonymous write permissions on all virtual directories.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wgetnz/hfs2/blob/master/advisories/hfs2-upload-filename-template-injection/README.md | [email protected] | AdvisoryExploitRemedyTechnical Analysis |
| https://www.vulncheck.com/advisories/hfs2-rce-via-multipart-upload-filename-template-injection | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Rejetto HTTP File Server | >= 2.4.0, <= 2.4.0 RC7 ~2.4 |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 24, 2026 | New CVE Received | [email protected] |
Volerion