Rejetto HFS
CVE-2026-61500
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconReach exposed HFS login endpoint
-
DeliveryCollect leaked Math.random() outputs from login responses
-
ExploitReconstruct PRNG state and recover signing key
-
InstallForge signed administrator session cookie
-
C2Authenticate as admin
-
ExecuteAbuse server_code feature for command execution
-
ImpactFull 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Vendor-released patch: v3.2.1
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
Path traversal via the `lang` query parameter in Rejetto HFS 3.0.0 through 3.2.0 enables remote unauthenticated attacker
Username enumeration in Rejetto HFS 3.0.0-3.2.0 exposes valid account names-including the default admin account-to remot
Stored cross-site scripting in Rejetto HTTP File Server 3.0.0-3.2.0 allows an unauthenticated remote attacker to inject
Rejetto HTTP File Server (HFS) versions 3.0.0 through 3.2.0 performs state-changing administrative operations via HTTP G
Stored XSS in Rejetto HFS 3.0.0 through 3.2.0 allows attackers with upload access - or any user on servers configured wi
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB