Security

herdr: self-update installed binaries without a checksum check

herdr self-update - stable channel installed release binaries without a checksum check, so one compromised origin could replace the user's herdr binary (GHSA-fwrr-jr6w-7cpw)

PUBLISHED SEVERITY HIGHSTATUS PatchedGHSA-fwrr-jr6w-7cpw
Patched

Fixed in herdr 0.8.2 (2026-08-19) by 69a07fd and 322ab6a: the stable manifest now carries a SHA-256 for every binary, and the updater and install scripts refuse a binary without one. The maintainers fixed it before our report was filed; our review was against an older commit. Track the fix at herdrdev/herdr@322ab6a.

Product
herdr (terminal workspace manager for coding agents) in herdrdev/herdr
Affected versions
herdr stable releases before 0.8.2 (0.8.0 and earlier), when updating with `herdr update`. Fixed in 0.8.2 (2026-08-19). The preview channel already checked checksums.
Severity
HIGH
Status
Patched
Weaknesses
  • CWE-494Download of Code Without Integrity Check
As filed on the advisory.
GitHub advisory
GHSA-fwrr-jr6w-7cpw
Private; in triage, not yet published by the maintainer
CVE
Pending (requested via MITRE CNA-LR)
Published
Credit
Finder: Aaron Elijah Mars of Aeon. Tool: Aeon (https://www.aeon.fun).

What users should do now

  1. Run herdr 0.8.2 or later. Check with herdr --version.
  2. The check lives in the new updater, so the update from 0.8.0 or earlier to a fixed version is still done by the old updater, which skips it. If you want that step checked too, reinstall with the official install script from herdr.dev (it checks the SHA-256 since this fix) or through your package manager, instead of running herdr update on the old version.
  3. If you want to be sure the binary you have now is genuine, compare its SHA-256 with the value for your platform in the sha256 field of https://herdr.dev/latest.json, or with the digest GitHub shows for the release file.

Summary

herdr reads a release manifest from https://herdr.dev/latest.json to learn the newest version and where to download each binary. Each binary entry could be a plain URL or an object with a URL and a SHA-256. The updater checked the SHA-256 only when the entry had one. The script that builds the stable manifest wrote plain URLs only, so on the stable channel, which almost all users are on, no binary was ever checked. The preview channel already wrote a SHA-256 for every binary.

The manifest and the binaries come from two different places: the manifest from herdr.dev, the binaries from GitHub releases. The SHA-256 is what ties one to the other. Without it, control of either place alone was enough to get a different program installed and run as the user, with nothing to catch it.

Affected versions

herdr stable releases before 0.8.2 (0.8.0 and earlier) on every platform, when the user runs herdr update. Automatic update checks only notify; the install starts only when the user asks for it. The preview channel was not affected.

Impact

  • Binary replacement. An attacker who controls the herdr.dev manifest, swaps a GitHub release file, or takes over the download path could have any program installed in place of herdr, which then runs with the user's rights the next time herdr starts.
  • No second line of defense. With checksums published, the attacker would need to control both herdr.dev and the GitHub release. Without them, one was enough.
  • Not an on-demand attack. An unrelated attacker cannot trigger this. It needs control of one of the two origins or the network path, and the user has to start the update.

Affected code

Permalinks at f7d791e, the last commit on master before the fix.

Fix

  • 69a07fd ("publish stable release checksums", 2026-08-06) adds a SHA-256 for every platform to the stable manifest.
  • 322ab6a ("verify stable release checksums", 2026-08-07) makes the check required: the updater now refuses a stable binary with no SHA-256 in the manifest, the manifest builder takes each digest from the GitHub release and fails if one is missing, and the Unix and Windows install scripts and the remote helper download check the SHA-256 too.
  • Both are in herdr 0.8.2, released 2026-08-19. The live manifest carries a SHA-256 for every platform.

Timeline

  1. Maintainers publish stable checksums (69a07fd).
  2. Maintainers make the check required (322ab6a).
  3. We report the issue privately via GitHub PVR (GHSA-fwrr-jr6w-7cpw). Our review was against commit 48d5864 (2026-07-01), so the fix was already on master when we filed.
  4. herdr 0.8.2 released with the fix.
  5. We confirm the fix is shipped and the live manifest carries checksums.
  6. We ask the maintainers to publish the advisory and request a CVE; a CVE ID is reserved with MITRE as a fallback.
  7. Follow-up on the advisory.
  8. We tell the maintainers on the advisory that this write-up will go out on 2026-11-25. No reply.
  9. Public write-up; CVE publication requested from MITRE.

Credit

Finder: Aaron Elijah Mars of Aeon. Tool: Aeon. Thanks to the herdr maintainers, who found and fixed this on their own before our report.

References