CVE-2026-137056: DeepSeek-Reasonix auto-approved git blame and git whatchanged as read-only, so a repository's textconv driver ran attacker commands without asking (fixed 2.53.0)
DeepSeek-Reasonix, an open-source Go coding agent, lets the model run shell commands without approval when its shellsafe classifier calls them read-only. Before 2.53.0 the classifier guarded git diff, show and log against --ext-diff and --textconv, but git blame and git whatchanged fell through to a generic allowlist. Git applies textconv filters during git blame by default, so a repository that ships a .gitattributes diff driver plus a matching textconv command in .git/config gets that command run with the user's privileges the moment the agent runs git blame, through prompt injection or routine use, in every approval mode. That exposes the stored provider API keys and session history. Fixed in 2.53.0.
What it is
GHSA-m46m-j2rc-6ff4 (CWE-78/862; NVD lists CWE-184): internal/shellsafe/effect.go checked --ext-diff/--textconv only for diff, show and log; blame and whatchanged were in readOnlyPrefixes['git'] and returned knownReader, so internal/permission/bash_readonly.go auto-approved them with no prompt.
Exploit chain from the advisory: the repository defines '*.c diff=evil' in .gitattributes and diff.evil.textconv=<command> in .git/config; the agent runs 'git blame a.c'; git runs the textconv command. 'git blame --no-textconv' does not. The reporter confirmed execution via git blame; whatchanged had the same classifier gap but did not fire in their test on Windows.
Affected: github.com/esengine/DeepSeek-Reasonix before 2.53.0 (verified live in v1.39.6 and v1.39.7). Fix commit 191d1e1 makes a git read in a repository that defines programs (drivers, hooks) go to the user for approval. 2.53.0 was released on 27 October 2026; NVD published the CVE on 25 November 2026.
How to check
- Run reasonix --version (or check the release you installed): anything before 2.53.0 is affected.
- In repositories you opened with the agent, look for diff drivers in .gitattributes and textconv or external-diff settings in .git/config that you did not add.
How to fix
- Upgrade DeepSeek-Reasonix to 2.53.0 or later.
- If an older version ran in a repository you didn't create, treat the provider API keys and session history it could read as exposed and rotate the keys.
- Open untrusted repositories with an approval mode that prompts for every command, or in a disposable container.
grep -n 'diff=' .gitattributes 2>/dev/null
git config --show-origin --get-regexp '^diff\..*\.(textconv|command)$'