Skip to main content
Menu
Advisories

daemon stop signals whatever PID the repository’s .claude-flow/daemon.pid names

GHSA-6M52-2492-94JJPublished Updated GitHub

Description

Impact

ruflo daemon stop read .claude-flow/daemon.pid from the project and sent SIGTERM (then SIGKILL) to that PID without checking it. The file lives in the working tree, so a cloned repository can ship one. A value of -1 signals every process the user owns, 0 the whole process group, and any other PID an unrelated process.

Patches

Fixed in 3.80.3 (ruvnet/ruflo#5085). Only a plain PID greater than 1 that is not the CLI itself is accepted, and on POSIX the process must be a ruflo / claude-flow process. Regression test daemon-stop-pidfile-target.test.ts.

Workarounds

Upgrade, or delete .claude-flow/daemon.pid from untrusted checkouts before running daemon stop.

Affected versions

References

GitHub · ruvnet/ruflo