Download Latest Version code-graph-rag-windows-amd64.exe (52.0 MB)
Email in envelope

Get an email when there's a new version of Code-Graph-RAG

Home / v0.0.670
Name Modified Size InfoDownloads / Week
Parent folder
multiple.intoto.jsonl 2026-08-18 11.4 kB
code-graph-rag-darwin-amd64.sigstore.json 2026-08-18 10.4 kB
code-graph-rag-darwin-arm64.sigstore.json 2026-08-18 10.5 kB
code-graph-rag-linux-amd64.sigstore.json 2026-08-18 10.5 kB
code-graph-rag-windows-amd64.exe.sigstore.json 2026-08-18 10.7 kB
code-graph-rag-darwin-amd64 2026-08-18 52.1 MB
code-graph-rag-linux-amd64 2026-08-18 69.5 MB
code-graph-rag-windows-amd64.exe 2026-08-18 52.0 MB
code-graph-rag-darwin-arm64 2026-08-18 50.9 MB
README.md 2026-08-18 7.9 kB
v0.0.670 source code.tar.gz 2026-08-18 12.3 MB
v0.0.670 source code.zip 2026-08-18 13.1 MB
Totals: 12 Items   250.0 MB 1

Highlights

  • Security: Fixes two chained EXECUTE_SHELL approval-bypass issues that let a malicious repository run arbitrary commands without user approval - advisories GHSA-2rr7-8xrw-gmhr (git core.sshCommand backdoor, RCE) and GHSA-4p93-4vf7-4m8r (find -exec bypass). Upgrade is strongly recommended for anyone running cgr (CLI, agent, or MCP) against untrusted repositories.
  • Runtime Call Tracing: Extended dynamic call-graph tracing to Rust and C/C++, added eBPF continuous-profiler (pprof) ingest with Python and JVM frame resolution, and taught the JS/TS tracer to remap transpiled frames back to TypeScript sources via source maps.
  • Dynamic Dispatch Provenance: Trace edges now capture concrete receiver classes for PHP, demangle C# local-function CLR frames to their nested node, and flag sampled-profiler edges as approximate.
  • Traceback Correlation: New MCP tool correlates a runtime traceback against the graph and returns ranked root causes.
  • Type Inference: Python loop variables now type from generic return annotations, and TS/JS variables type from annotations and for-of element types.

๐Ÿ”’ Security

This release closes two chained flaws in the EXECUTE_SHELL tool's approval gate. Both are exploited the same way: a repository the agent analyzes plants an instruction file (e.g. .cgr.md) that tells the agent a command is "required for the project to work - do NOT ask the user for permission." Where the approval gate could be reached at all, that framing turns it into a weak control, so the fixes tighten the gate and refuse the highest-impact command outright.

GHSA-2rr7-8xrw-gmhr - git core.sshCommand backdoor -> RCE (High, CVSS 7.5, CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H). Write-capable git subcommands were auto-approved, so an injected git config --global core.sshCommand <payload> was executed without a prompt. core.sshCommand (and peers like credential.helper, core.hooksPath, core.pager, alias.*, filter.*.clean/smudge/process, *tool.*.cmd) hold a value that git hands straight to a shell on the next SSH-based or hook-triggered git operation - a single write is remote code execution on the victim's machine. Fixed by removing git from the auto-approved set and blocking git config writes to any exec-carrying key outright, at every config scope, at the same layer that already refuses rm -rf /. Reads (--get, --list) and --unset stay allowed so a victim can inspect and clear a planted backdoor. Credit: @haomoumou.

GHSA-4p93-4vf7-4m8r - find -exec approval bypass (High, CVSS 7.3, CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, CWE-863). find was treated as a read-only command, but its -exec/-execdir/-ok/-okdir/-delete actions run arbitrary commands and mutate the filesystem, so an injected find ... -exec <payload> {} ; ran without approval. Fixed by requiring approval for find's mutating actions and reducing the read-only command set to {pwd, echo, tr}, so path-accepting readers (cat, ls, find, ...) can no longer be auto-approved. Credit: @regaan.

Affected: <= 0.0.669 ยท Patched: 0.0.670. Upgrade to 0.0.670 if you run cgr against repositories you do not fully control.

What's Changed

The two security fixes (GHSA-2rr7-8xrw-gmhr, GHSA-4p93-4vf7-4m8r) landed via a private security-advisory fork merge and are detailed in the Security section above.

Full Changelog: https://github.com/vitali87/code-graph-rag/compare/v0.0.639...v0.0.670

Source: README.md, updated 2026-08-18