Skip to content
Blog

Rejetto · HFS · HTTP File Server

Rejetto HFS CVE-2026-61500 in CISA KEV: a session key from Math.random(), all the way to code execution

CVE-2026-61500 (9.8): HFS 3 signs session cookies with a key derived from Math.random(). Forged admin cookie, then code execution. Now in the CISA KEV catalog.

4 min readCVE-2026-61500

CVE-2026-61500 was published in NVD on July 13, 2026. CISA added it to the KEV catalog on November 30, 2026, with a due date of December 3 — three days to fix a bug that had been public for more than four months.

It affects Rejetto's HFS (HTTP File Server), a small open source file-sharing server that people spin up on a workstation or server "just for now" and then forget about. The bug is a textbook one: the key that signs session cookies comes from Math.random(), a generator that was never meant for cryptography.


The vulnerability

FieldValue
CVECVE-2026-61500
CVSS 3.19.8 (CRITICAL), from VulnCheck (CNA)
CVSS 4.09.3 (CRITICAL), from VulnCheck (CNA)
TypeCryptographically weak PRNG (CWE-338)
Authenticationnone
VersionsHFS 3.0.0 through 3.2.0
NVD statusUndergoing Analysis (no NVD score yet)
NVD published2026-07-13
Added to CISA KEV2026-11-30
CISA due date2026-12-03

VulnCheck vectors: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H and 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.


How it works

NVD's description lays out a four-step chain:

  1. HFS derives its session-cookie signing key from Math.random(), JavaScript's non-cryptographic generator.
  2. During login, HFS hands values from that same generator to unauthenticated clients.
  3. By collecting a small number of login responses, an attacker reconstructs the generator's internal state — and with it, the key.
  4. They forge a valid administrator session cookie, get full admin access, and execute code through the server_code configuration feature.

Step 3 is the heart of it. Generators like the one behind Math.random() are deterministic: a small internal state fully determines their output. See a few consecutive outputs and you can recover that state, and therefore every past and future output — including the one used to build the key. Hence the rule: secrets come from a cryptographic generator (crypto.randomBytes in Node.js), never from Math.random().

Step 4 turns a stolen session into a server compromise. server_code lets an administrator run server-side code, so once the attacker is admin, no further bug is needed.


Affected versions

ProductAffected versions (NVD)Referenced fix
Rejetto HFS3.0.0 through 3.2.03.2.1 (GitHub release cited by NVD and CISA)

NVD has not published a CPE configuration for this CVE yet. 3.2.1 is the release both NVD and the CISA note point to; check the HFS releases page in case a newer version is recommended.

CISA flags this as an open source component that other products may embed: if an internal tool or appliance ships HFS 3, it is affected too.


What the KEV entry says — and doesn't

The KEV entry lists ransomware use as "Unknown". NVD's references include a GreyNoise post whose URL points to an intrusion campaign against Check Point Security Management servers; neither NVD nor CISA explains how HFS fits in. One plausible reading is that HFS servers played a part in that campaign, but that is a guess — read the post before drawing conclusions.

The entry also references the forensic triage requirements of BOD 26-04.


Detection

  • Inventory: look for HFS processes and services on workstations and servers, and for undocumented HTTP listeners. HFS is often started by hand, outside any managed deployment
  • HFS logs: bursts of login attempts from a single address (rebuilding the generator state takes several login responses), followed by an admin session with no matching successful login
  • Configuration: anything in server_code that nobody on your team wrote
  • Host: unexpected child processes of HFS, outbound connections it initiates

Mitigation

  1. Upgrade to HFS 3.2.1 or later.
  2. Invalidate sessions after upgrading — the key may have been recovered. A restart on a new version should generate a fresh key, but confirm it in the release notes.
  3. Keep the HFS admin interface off the internet. If sharing has to be public, bind the admin side to localhost or a management network.
  4. If the instance was exposed: treat the host as compromised, inspect server_code, accounts and shared files, and rotate any credentials stored on the machine.
  5. Ask whether HFS still needs to run: a file server started for a one-off need shouldn't stay online indefinitely.

Why continuous monitoring matters for the small tools

HFS is not the kind of software that ends up in an asset inventory. That is exactly why it stays online, unpatched, four months after a critical bug is disclosed.

With cveo.tech, add those tools to your inventory with their version, and get alerted when a CVE affects them or lands in the CISA KEV catalog.

Know which CVEs hit the versions you run.

Add the product and its version: cveo.tech lists the CVEs that affect it right away, then alerts you by email when a new one affects it — including before NVD has finished its analysis. Free, an account is all it takes.

Every Monday

The week's critical CVEs, in your inbox

One email a week: the CVSS ≥ 9 vulnerabilities published in the last seven days, plus our latest analyses. Nothing else.

Double opt-in by email. Unsubscribe in one click, any time.