Skip to content
FlawDB
Sign in

CVE-2026-137185

HIGH 7.3

Code Graph RAG: EXECUTE_SHELL allowlist and dangerous-pattern blacklist both miss xargs <interpreter> -c — approved/yolo shell commands reach unconfined RCE

AI summary AI generated

An attacker who can influence a model-issued shell command can execute arbitrary code via xargs with a Python interpreter in Code Graph RAG, bypassing its shell allowlist and pattern filter.

Mitigation

  • Upgrade code-graph-rag to 0.0.845 or later.

Who should check

  • Anyone running vitali87 code-graph-rag < 0.0.845

Vulnerability facts

Affected
vitali87 code-graph-rag < 0.0.845
Fixed in
vitali87 code-graph-rag 0.0.845
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
CWE
CWE-78, CWE-863
Published
Modified

Description

Code Graph RAG is an AI-powered knowledge graph and retrieval system for querying, understanding, and editing multi-language codebases. In 0.0.844 and earlier, execute_shell_command in codebase_rag/tools/shell_command.py validates only the base command, not the program launched by allowlisted xargs. Its dangerous-pattern filter misses Python interpreter code using modules such as subprocess instead of importing os, allowing an unlisted interpreter to execute arbitrary code. An attacker influencing a model-issued command can execute code outside the project root as the process user after human approval in default mode, or without approval in --yolo mode. The noninteractive shell wrapper does not allow xargs. This issue is fixed in 0.0.845.

Affected and fixed versions

Package / productAffectedFixedSource
vitali87 code-graph-rag< 0.0.845—cvelist

Versions mentioned in the description AI generated

Extracted by AI; each line quotes the description word for word. Source data above takes precedence.

  • Affected: code-graph-rag In 0.0.844 and earlier In 0.0.844 and earlier
  • Fixed: code-graph-rag 0.0.845 This issue is fixed in 0.0.845.

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-137185. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-137185.md
Affected: vitali87 code-graph-rag < 0.0.845
Fixed in: vitali87 code-graph-rag 0.0.845

Steps:
1. Search this machine and project for vitali87 code-graph-rag: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-137185 being exploited?

There is no confirmed exploitation: CVE-2026-137185 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2026-137185?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-137185?

vitali87 code-graph-rag < 0.0.845.

Is there a fix for CVE-2026-137185?

Yes. Fixed in vitali87 code-graph-rag 0.0.845. Upgrade code-graph-rag to 0.0.845 or later.

How do I check if I'm affected by CVE-2026-137185?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors