Rejetto HTTP File Server (HFS) Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Vulnerability

🚨SEVERITY: CRITICAL — CVSS 9.8Security Advisory

TL;DR 📌

  • Rejetto HTTP File Server (HFS) contains a use of cryptographically weak pseudo-random number generator vulnerability that allows an unauthenticated remote attacker to recover the session-cookie signing key from predictable values in login responses, forge an administrator session cookie, and execute arbitrary code via the server_code configuration feature.
  • Highest CVSS: 9.8 (Critical).
  • Listed in CISA KEV (2026-11-30) — this is being exploited in the wild.
  • Check the advisory for fixed releases — remediation detail is in the vendor link below.
  • CVEs: CVE-2026-61500.

What it is

Rejetto HTTP File Server (HFS) versions 3.0.0 through 3.2.0 generate the signing key for session cookies using JavaScript’s Math.random(), a non-cryptographic PRNG. The same generator’s output is also exposed to clients, unauthenticated, in login responses.

An attacker only needs network access to the HFS login endpoint. No credentials are required. By collecting a small number of login responses, the attacker can reconstruct the internal state of the PRNG, derive the signing key, and forge a valid administrator session cookie.

With a forged admin cookie, the attacker has full administrative access to HFS. From there, the server_code configuration feature — intended for legitimate server-side scripting — can be used to execute arbitrary code on the host.

This is listed in CISA’s Known Exploited Vulnerabilities catalogue, added 30 November 2026.

What to do

  • Check your HFS version. If it is 3.0.0 through 3.2.0, treat it as vulnerable; no fixed release is listed in the advisory at present, so consult Rejetto’s advisory directly for a patched build or mitigation guidance.
  • If no fix is available, take the HFS login endpoint off the public internet immediately — restrict access to a VPN or trusted internal network only.
  • Disable or restrict the server_code feature if your deployment does not require it, since this is the mechanism used to turn a forged admin session into code execution.
  • Rotate any session-signing secrets or restart the service after patching, since a key derived from a predictable generator should be considered permanently compromised regardless of whether exploitation has been observed on your instance.
  • Given the CISA KEV listing, prioritise this for immediate remediation ahead of routine patch cycles, and check logs for anomalous admin logins or use of server_code predating any fix.

For leadership 🧭

Executive summary. Any internet-reachable Rejetto HFS server running 3.0.0 through 3.2.0 can be fully taken over by an attacker with no credentials, using nothing more than a handful of login requests to predict the admin session key. This is in CISA’s KEV list, so remediation should happen today, not at the next patch cycle.

Why it matters:

  • The signing key for admin session cookies comes from Math.random(), a predictable generator, and HFS also exposes that generator’s raw output to anyone hitting the login endpoint — no account needed.
  • A handful of collected login responses is enough to reconstruct the PRNG state and forge a valid administrator cookie, skipping authentication entirely.
  • Once an attacker holds a forged admin cookie, the built-in server_code configuration feature gives them a direct path to arbitrary code execution on the host.
  • CISA has added this to its Known Exploited Vulnerabilities catalogue, confirming active exploitation in the wild.

Now / Next / Later:

  • Now: Identify any HFS instance running 3.0.0 through 3.2.0 and, if it is reachable from the internet, pull its login endpoint behind a VPN or internal-only network access immediately.
  • Next: Check Rejetto’s advisory for a patched build; where none is yet available, disable or lock down the server_code feature and review logs for unexpected admin logins or server_code activity.
  • Later: Once patched, rotate the session-signing secret or restart the service, since any key derived from the old generator must be treated as permanently compromised regardless of whether abuse was detected.

Source