You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Injection guard compares git's quoted path output against a raw path, letting non-ASCII tracked paths bypass it #774
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:highBlocks work or has already caused damage
The shared injection guard added in 9322df5 (#754) reads tracked files via git ls-files without -z at scripts/lib-memory-context.sh:380 and :383, then compares each line against the raw relative path with [ "$_fts_line" = "$_fts_rel" ] / _remember_ci_eq at :520.
git ls-files quotes and octal-escapes any path containing non-ASCII bytes when core.quotePath is on, which is the default on every platform. A tracked path like café/.remember/now.md comes back from git as "caf\303\251/.remember/now.md", which never string-equals the raw relative path. The guard then answers not-tracked and injects the file.
The commit that introduced this comparison (9322df5) also deleted the older handoff check that used ls-files -z for exactly this reason — see its own comment at v0.34.0:scripts/session-start-hook.sh:1863-1880.
Impact
An attacker who controls a repository chooses its directory names. Committing <non-ASCII dir>/.remember/{now,core-memories,remember}.md and having the victim start Claude inside that directory delivers the attacker's text into session context as if it were the user's own memory — the exact class this release's security fix (GHSA-6q55-m29c-3xgj) is meant to close. The symlink variant is unaffected, since [ -L ] is a shell builtin independent of git's output.
Not a regression versus v0.34.0 (no guard existed there for memory files), but an incomplete fix shipped under a security changelog entry.
Fix
Read git ls-files -z and split on NUL, or force git -c core.quotepath=false for this comparison. Add a regression test using a non-ASCII directory name in the injection-guard suite (none of the three existing files cover one).
How to verify
In a scratch repo, commit pkg-é/.remember/now.md, run session-start from pkg-é with core.quotepath at its default, and grep the emitted context for the file's text; it should not appear.
Found by the release-auditor during the round-1 audit of v0.34.0..HEAD. Ranked forges, blocking.
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:highBlocks work or has already caused damage
Activity
fix(Digital-Process-Tools#774,Digital-Process-Tools#775): quote-safe …