Rejetto HFS CVE-2026-61500 (CVSS 9.8) Now in CISA KEV: AI-Found Math.random() Flaw Lets Unauthenticated Attackers Forge Admin Sessions and Run Code — Upgrade to 3.4.2, Federal Deadline 3 December

CISA has added the Mythos-discovered Rejetto HFS weak-PRNG flaw CVE-2026-61500 to its exploited list, because leaked Math.random() outputs let attackers rebuild the cookie-signing key, become admin and run code on HFS 3.0.0–3.2.0.
The US Cybersecurity and Infrastructure Security Agency (CISA) has added CVE-2026-61500, a critical flaw in Rejetto HTTP File Server (HFS), to its Known Exploited Vulnerabilities (KEV) catalog. HFS is a popular open source file server. The bug lets an unauthenticated attacker forge an administrator session and then run code on the server. It is also one of the first vulnerabilities found with Anthropic's Mythos model to be confirmed as exploited in the wild.
The fix is not new: HFS 3.2.1 closed the hole on 13 July 2026. CISA's listing is a reminder that a patch only helps once it is installed, and that file servers people set up once and forget are exactly what attackers look for.
What Happened
CISA added the flaw to the KEV catalog on 30 November 2026. The catalog update went out at 23:44 Mauritius time (19:44 UTC). It sets a remediation deadline of 3 December 2026 for US federal civilian agencies, one of the shortest windows in the catalog. The KEV entry also asks agencies to follow CISA's forensic triage requirements. In practice, that means treating an exposed, unpatched server as possibly already compromised, not just as something to update. CISA lists ransomware use as "unknown".
Exploitation itself is not new either. In early October, two months after the patch shipped, VulnCheck warned that its honeypots were seeing small-scale probing for the bug. Researchers traced the early reconnaissance to an IP address belonging to China Telecom, aimed at decoy servers in Japan and the United States. VulnCheck, which is also the CVE Numbering Authority that assigned the identifier, already lists the flaw in its own KEV database.
Technical Details
The root cause is a classic cryptography mistake: using a random number generator built for speed, not secrecy.
- HFS 3.0.0 through 3.2.0 derives the key that signs its session cookies from JavaScript's
Math.random(). - In the V8 engine used by Node.js,
Math.random()runs on the xorshift128+ algorithm. It is fast, but its internal state can be calculated from a handful of outputs. - During login, HFS also sends raw outputs from the same generator to clients that have not authenticated yet.
- An attacker who collects a small number of login responses can work out the generator's state, recover the signing key and sign a cookie that HFS accepts as a valid administrator session.
- With admin access, the attacker can use HFS's
server_codeconfiguration feature, which runs JavaScript on the server, to execute commands. According to the researchers, that means running as root wherever HFS runs with root privileges.
The record classes the flaw as CWE-338 (use of a cryptographically weak PRNG). It scores 9.3 under CVSS 4.0 and 9.8 under CVSS 3.1: network attack, low complexity, no privileges and no user interaction. CISA's enrichment of the record marks it as automatable with "total" technical impact.
Found by an AI Model
Zach Hanley of Horizon3.ai, working with Anthropic's Claude and Anthropic Research, reported the issue. In a write-up published on 10 November, Horizon3 explains that it joined Anthropic's Project Glasswing in July 2026. It then ran parallel AI agents over target code, each looking for one class of vulnerability.
- An agent running on Mythos and focused on cryptographic weaknesses flagged the cookie-signing chain.
- A second agent independently checked the finding and confirmed it was real.
- According to Horizon3, Mythos then built a working proof of concept that used the Z3 SMT solver to recover the generator's state, ending in an administrator session and remote command execution.
- The model also found a user-enumeration weakness, which was part of the chain and was disclosed to the maintainer as well.
The finding counts as a defensive win. The bug was reported, fixed and assigned a CVE before anyone exploited it. The exploitation that followed targets administrators who never updated.
Who Is Affected
- Affected: Rejetto HFS versions 3.0.0 up to (but not including) 3.2.1, on any platform. HFS 3 runs on Windows, Linux and macOS.
- Most at risk: HFS instances reachable from the internet, especially ones running as root or as a Windows administrator. These are often set up quickly to share files with clients or between sites, then forgotten.
- Not this bug, but still risky: the old Delphi-based HFS 2.x line is a different codebase. It has its own exploited flaw, CVE-2024-23692, which has been in KEV since 2024, and it no longer gets fixes. Anyone still running 2.x should retire it.
Patch Status
HFS 3.2.1 fixed the issue on 13 July 2026. Its release notes warn that "multiple security vulnerabilities have been found in all previous versions, potentially allowing an attacker to gain administrative access to HFS." Development has continued since then. The latest release, 3.4.2 (24 November 2026), fixes further moderate-severity issues: unapproved HTML uploads being served, and an HTML injection and open redirect. Install the latest release, not just 3.2.1.
What To Do Now
- Find every HFS instance. Check servers, desktops and VMs that might be sharing files. The version number appears in the admin panel and at startup.
- Upgrade to HFS 3.4.2 or later from the official GitHub releases page. If you can't upgrade straight away, take the server off the internet or put it behind a VPN or an IP allowlist.
- Assume compromise if a vulnerable instance was exposed after early October. Look in the HFS configuration (
config.yaml) forserver_codeentries you didn't add, accounts or permissions you don't recognise, and changed admin settings. - Check the host as well as HFS. Look for unexpected child processes of the Node.js or HFS process, new scheduled tasks, cron jobs or services, and outbound connections from the file server.
- Rotate secrets stored on or reachable from the host, and change the HFS admin password after upgrading.
- Restrict the admin panel. Expose it only to trusted addresses, and don't run HFS as root or as an administrator.
A simple inventory check on Linux hosts:
# Find running HFS processes and the account they run as
ps -eo user,pid,args | grep -i '[h]fs'
# Look for server_code entries in HFS config files
sudo find / -name 'config.yaml' -path '*hfs*' -exec grep -Hn 'server_code' {} \; 2>/dev/null
Why It Matters
This case shows both sides of AI-assisted security research. A model found a subtle cryptographic chain that is easy to miss in code review, and the maintainer fixed it within days of the CVE being reserved. Even so, attackers were probing for the bug within weeks of the public write-ups, and CISA still felt the need to escalate it in late November. AI makes finding and fixing bugs faster, but it doesn't install the update. For small, self-hosted tools like HFS, the gap between "fixed" and "patched everywhere" is where the risk sits.
