Skip to main content

Rejetto HFS CVE-2026-61500

CRITICAL
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CWE-338)
2026-07-13 VulnCheck
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Reach exposed HFS login endpoint
  2. Delivery
    Collect leaked Math.random() outputs from login responses
  3. Exploit
    Reconstruct PRNG state and recover signing key
  4. Install
    Forge signed administrator session cookie
  5. C2
    Authenticate as admin
  6. Execute
    Abuse server_code feature for command execution
  7. Impact
    Full host compromise (RCE)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
Exploitation Conditions

Exploitation requires that the HFS instance (versions 3.0.0-3.2.0) be network-reachable and that its login endpoint be accessible to the attacker, because the attack depends on collecting the Math.random() outputs disclosed in login responses to reconstruct the signing key. No credentials, user interaction, or non-default configuration are needed (CVSS PR:N/UI:N) - the weak-PRNG key derivation is inherent to affected versions. Reaching full RCE additionally relies on the server_code configuration feature being present, which is the built-in path from forged admin session to code execution. Limiting factors: the attacker must be able to observe enough login responses to solve the generator state (so instances whose login/admin surface is firewalled or proxied to trusted IPs are not exploitable from the open internet), and the flaw is fixed in 3.2.1, so only 3.0.0 through 3.2.0 are at risk.

Impact

The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, score 9.3) rates this critical with no authentication and full confidentiality/integrity/availability impact, consistent with unauthenticated forgery leading to RCE. I would nuance attack complexity: collecting sufficient login samples and reconstructing the Math.random() state is a deliberate, non-trivial step, so a defensible assessment is AC:H rather than AC:L - the outcome is reliable but the technique is not a single trivial request. No EPSS score, KEV listing, or public POC is present in the provided data, so real-world exploitation signals are currently absent; the primary risk driver is the combination of a network-reachable, unauthenticated path to RCE and a credible disclosure by VulnCheck in collaboration with Horizon3.ai. There is no conflict between the CVSS vector and the description - both indicate remote, pre-auth exploitation. Bottom line: a genuine high priority for any exposed HFS 3.x instance, tempered only by the absence of confirmed in-the-wild activity.

Exploit ScenarioDerived

An attacker who can reach an internet-exposed HFS 3.x login page sends a small number of unauthenticated login requests and records the Math.random()-derived values leaked in the responses. Using those samples they reconstruct the generator's internal state offline, regenerate the session-cookie signing key, and forge a signed administrator cookie; presenting that cookie grants full admin access, after which they use the server_code configuration feature to execute arbitrary commands on the host. No public exploit is identified at time of analysis, though the technique is well understood for Math.random() state recovery.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 13, 2026

Administrator session forgery in Rejetto HFS (HTTP File Server) versions 3.0.0 through 3.2.0 lets a remote unauthenticated attacker derive the server's session-cookie signing key. Because HFS seeds that key from JavaScript's non-cryptographic Math.random() and simultaneously leaks outputs of the same generator to clients during login, an attacker can sample a few login responses, reconstruct the PRNG state, and mint a valid admin cookie - yielding full administrative control and remote code execution through the server_code configuration feature. No public exploit is identified at time of analysis, but the flaw was reported by VulnCheck/Horizon3.ai and a vendor patch (v3.2.1) exists.

RemediationAI

Vendor-released patch: 3.2.1 - upgrade every HFS instance to v3.2.1 or later immediately, as it addresses multiple session/authentication weaknesses affecting all prior 3.x versions (https://github.com/rejetto/hfs/releases/tag/v3.2.0...v3.2.1 changelog; release: https://github.com/rejetto/hfs/releases/tag/v3.2.1). Where an immediate upgrade is not possible, restrict network exposure of the admin interface by placing HFS behind a reverse proxy or firewall that limits access to the login/admin endpoints to trusted source IPs, which prevents an attacker from collecting the login responses needed to reconstruct the PRNG state (trade-off: legitimate remote administration must originate from allowlisted addresses). As a further compensating control, disable or lock down the server_code configuration feature and any admin account that is not strictly required, since server_code is the specific vector that converts a forged admin cookie into code execution (trade-off: loss of that scripting/automation capability). Rotate the server after patching, as any previously issued admin cookies should be considered compromised. Consult the VulnCheck advisory (https://www.vulncheck.com/advisories/rejetto-hfs-session-forgery-via-predictable-signing-key) for details.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

HFS is a lightweight, self-contained HTTP file server; the modern 3.x line is built on Node.js, where the vulnerable design relies on Math.random(). Math.random() is a fast, non-cryptographic PRNG (typically an xorshift128+ variant in V8) whose internal state can be recovered from a handful of observed outputs. This maps directly to CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator): the same weak generator both derives the secret HMAC/signing key for session cookies and produces values exposed to unauthenticated clients during the login flow. Knowing the generator's outputs allows an attacker to solve for its state and thereby regenerate the signing key deterministically. The CPE cpe:2.3:a:rejetto:hfs:*:*:*:*:*:*:*:* confirms the affected component is the Rejetto HFS application itself across the 3.0.0-3.2.0 range.

Know when Hfs gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Network, unauthenticated (PR:N/UI:N) path to admin RCE gives C/I/A High; AC:H reflects the sampling and PRNG-state reconstruction needed to recover the key.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Rejetto HFS 3.0.0 through 3.2.0 derives its session-cookie signing key from the non-cryptographic Math.random() generator and discloses outputs of the same generator to unauthenticated clients during login. A remote attacker can collect a small number of login responses, reconstruct the generator's state, recover the signing key, and forge a valid administrator session cookie, leading to full administrative access and remote code execution via the server_code configuration feature.

Executive ViewAI

Why It Matters

Rejetto HFS versions 3.0.0-3.2.0 contain a critical vulnerability enabling attackers without credentials to impersonate administrators and execute arbitrary code on affected servers. Organizations relying on HFS for internal file distribution face immediate risk of data exfiltration, operational outage, and potential compromise of connected corporate infrastructure.

Business Impact: Severe
Compensating Controls

Vendor-released patch: v3.2.1

Threat Intelligence Overview

EPSS Score
0.7%
Top 49% exploitable
Prevalence
Medium
popular lightweight file server, mostly hobbyist and small-deployment footprint
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

67
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:rejetto:hfs:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy