Rejetto HFS: disclosed Wednesday, exploited Thursday

CVE-2026-61500 was found with AI help and under attack a day after the announcement. The bug itself is a predictable session cookie, nothing to do with AI.

PentestBR TeamPublished 4 min read

The story going around is a good one: an AI model finds a bug in an open source project, turns a math problem into an exploit, and the next day somebody is using the door. It also hides what matters to anyone running systems: the flaw was not an AI flaw. It was a weak random number generator behind a session cookie. What changed was not the target. What changed was who was willing to look at the boring part of the code, and how little time defenders now have to react.

What happened

CVE-2026-61500 affects Rejetto HTTP File Server (HFS), versions 3.0.0 through 3.2.0. The official CVE record is dated July 13, 2026 and was updated on October 1. Its description is blunt: HFS derives the session cookie signing key from a non-cryptographic pseudo-random generator and discloses outputs of that same generator to unauthenticated clients during login. A remote attacker can recover the key, forge a valid session cookie and get full administrative access, with remote code execution through a feature native to the product.

The CWE is 338, use of a cryptographically weak PRNG. Severity is critical: CVSS 3.1 of 9.8 and CVSS 4.0 of 9.3, network vector, low complexity, no privileges, no user interaction.

The finder was Zach Hanley at Horizon3, using Anthropic’s Mythos model. Rejetto’s fix notice, version 3.2.1, credits Hanley and Anthropic Research by name.

According to The Register, Hanley said on Wednesday that he had used Mythos to find the flaw. On Thursday, VulnCheck reported that it had started detecting exploitation. One day between the announcement and the first attack. VulnCheck’s Patrick Garrity said his canaries caught an actor in China targeting genuinely vulnerable hosts in the United States, with overnight activity against servers in the US and Japan and later hits arriving through a proxy.

The flaw was not about AI

Worth saying again, because it is where internet commentary usually goes wrong: this is a web application bug. No model, no prompt, no obedient agent. It is a cookie signed with a guessable secret in a Node.js application.

The pattern is common. A team that needs a quick identifier calls Math.random(), drops the result into a token and starts treating it as a secret. A team that borrowed a session library from a tutorial does not know where the key came from. None of that is innovation. It is Tuesday implementation.

The model’s work was good because it did not stop at the weak generator. It connected the generator to the code path that leaks its outputs, worked out whether the leak was enough to recover the key, built the exploit and ran it. Not magic. Sequence, and sequence is what a two-hour human review at the end of a sprint tends not to do. Horizon3 itself writes that researchers like them, who avoid chasing cryptographic flaws, had been dropping this kind of finding: they lacked the math to close the impact and the time to build the exploit did not pay off. A model has no such constraint.

One day to patch

The useful number in this case is the gap. Between the announcement and exploitation there was one day. Anyone running HFS with the port open and relying on a monthly maintenance window cannot keep that pace.

HFS was not an unknown either: according to the same report, it already appeared in CISA’s known exploited vulnerabilities catalog in 2024. A product with that history, exposed to the internet, deserves an inventory entry and a short patch deadline, not a queue.

What to look at in your application

Three points apply to any application with its own session layer.

First, token unpredictability. Cookies and tokens have to be impossible to forge with what an attacker can observe. A hand-rolled session layer is a natural candidate for this class of bug.

Second, administrative functionality as attack surface. HFS has an administrative API that accepts executable code through configuration. Large administrative power that is easy to reach turns an authentication problem into an incident.

Third, proof. An authentication finding without request, response and observable effect is an opinion. With all three, it becomes something a team can prioritize and fix.

Limits matter too: application testing will not find a leaked cloud key in a repository or a flaw inside an appliance binary. If your risk lives in CI, in a supplier or in patching, that is a different job.

What to do now

  • If you run Rejetto HFS 3.x, upgrade to 3.2.1 or later. It is the most urgent line in this post.
  • Search your codebase for where secrets are generated, and replace any Math.random() with the platform’s cryptographic generator.
  • Shorten the patch deadline for internet-facing systems: from months to days.
  • List what is exposed and who owns each item, before the next announcement.

Keep reading

Back to blog