# CVE-2026-97359: HFS2 2.4.0 RCE via Multipart Upload Filename Template Injection

- Severity: Critical 10.0 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.60%, higher than 94% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-24T13:28:18.818Z
- Modified: 2026-09-29T03:17:23.087Z
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- rejetto hfs2: from 2.0.0 up to 2.4.0

## Every score

- VulnCheck: CVSS:4.0 10.0 Critical `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`
- VulnCheck: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/wgetnz/hfs2/blob/master/advisories/hfs2-upload-filename-template-injection/README.md> (exploit, technical-description)
- <https://www.vulncheck.com/advisories/hfs2-rce-via-multipart-upload-filename-template-injection> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-97359](https://www.cve.org/CVERecord?id=CVE-2026-97359), CVE Terms of Use, modified 2026-09-29
- NVD: [CVE-2026-97359](https://nvd.nist.gov/vuln/detail/CVE-2026-97359), Public domain, modified 2026-09-29

---

Page: https://cve.day/CVE-2026-97359 · Whole record: https://cve.day/CVE-2026-97359.json · Rebuilt by cve.day 2026-11-25T22:59:40.759Z
