News

Rejetto HFS CVE-2026-61500: Forged Admin Sessions Lead to RCE, Exploited in the Wild. Update to 3.2.1 or Later

December 1, 2026 · 4 min read · John Crump
Diagram: attacker abuses Math.random() leak in Rejetto HFS login to forge an admin cookie, then runs code via server_code (CVE-2026-61500)

If you run Rejetto HFS (HTTP File Server) version 3, update it now. CVE-2026-61500 lets someone with no account forge an administrator session and then run code on the server. Attackers are already using it, and on November 30 CISA added it to its Known Exploited Vulnerabilities (KEV) catalog. US federal civilian agencies have until Thursday, December 3 to patch. The fix has been out since July, in HFS 3.2.1.

The short version

  • Affected: Rejetto HFS 3.0.0 through 3.2.0
  • Severity: CVSS 9.8 (v3.1) / 9.3 (v4.0), critical
  • The bug: The session-cookie signing key comes from Math.random(), and the login process leaks that generator’s output. Recover the key and you can sign your own admin cookie.
  • Login needed: None
  • Exploited? Yes. In CISA KEV since November 30. GreyNoise ties it to a group it tracks as GT13.
  • Fix: Upgrade to HFS 3.2.1 or later (the current release is 3.4.2), and keep the admin panel off the internet

What HFS is

HFS is a free, open-source file server you run yourself. You point it at some folders and it shares them over the web, with a built-in admin panel. It runs on Windows, Linux and macOS, and it’s popular for quick “I just need to share these files” setups. That’s exactly the kind of thing that gets left running and forgotten.

How the attack works

HFS signs session cookies with a secret key, so it can tell a real admin session from a fake one. The problem is where that key comes from. Versions 3.0.0 to 3.2.0 build it with JavaScript’s Math.random(), which is fast but isn’t meant for secrets. Its output can be predicted once you’ve seen enough of it.

And HFS shows you some of it. Values from the same generator turn up in responses during the login process, to anyone who asks, no account needed. So the attack goes like this:

  1. Send a handful of login requests and collect the leaked random values.
  2. Work backward to the generator’s internal state, and from that, the signing key.
  3. Sign a session cookie that says “I’m the admin.” HFS accepts it.
  4. Use the admin panel’s server_code setting, which runs custom code on the server, to execute whatever you like.

No password guessing and no user interaction. Just a few requests and some math.

Who’s using it

VulnCheck’s honeypots first saw probing for vulnerable HFS servers in early October. VulnCheck described it as small-scale reconnaissance from a single China Telecom IP address, aimed at servers in Japan and the US.

It got more serious from there. Last week GreyNoise reported that a group it tracks as GT13 was using CVE-2026-61500 to take over HFS servers and use them as relays. Through those relays, the group broke into about two dozen Check Point security management servers at 22 organizations between October 17 and November 2. In other words, the hacked file servers weren’t the goal. They were cover for attacks on something more valuable.

Shadowserver currently counts a little over 900 HFS instances exposed to the internet, most of them in China (205) and the US (121). Some of those will be honeypots or already patched, but plenty probably aren’t.

Am I exposed?

Check your version. It’s shown in the HFS admin panel. Anything from 3.0.0 to 3.2.0 is vulnerable. If you’re running HFS in Docker, check the image tag:

docker ps --format '{{.Names}}\t{{.Image}}' | grep -i hfs

Then ask whether the server, and especially its admin panel, can be reached from the internet. If it can, assume it’s been scanned.

How to fix it

1. Upgrade

Get the latest release from the HFS GitHub releases page. 3.2.1 fixes this bug, but there’s no reason to stop there. The current version is 3.4.2. HFS can also update itself from the admin panel.

2. Restrict the admin panel

HFS lets you limit admin access to localhost or specific addresses. Do that. If you need to manage it remotely, go through a VPN rather than opening it to the world. If the server is just for sharing files on your own network, don’t forward a port to it at all.

3. If you were exposed, check for signs of a break-in

  • Look at the server_code setting in the admin panel (or in HFS’s config.yaml). If there’s code there you didn’t put there, the server’s been compromised.
  • Check for admin accounts, plugins or shared folders you don’t recognize.
  • Watch for outbound connections from the HFS host. In GT13’s case, the servers were used as relays, so unexpected traffic heading out to other networks is a red flag.

If you find anything, don’t just patch and move on. Rebuild the machine, and change any passwords or keys that were stored on it.

Bottom line

This is a fully remote, no-login path to running code on the server, it’s being exploited, and the fix has been available for months. If you run HFS 3, update to the latest version today and get the admin panel off the internet. If you don’t remember whether you’re running it, that’s worth checking too.

Sources: BleepingComputer, OSV (CVE-2026-61500), Ostorlab, Rescana, OpenCVE.

Leave a Reply

Your email address will not be published. Required fields are marked *