Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →· Its place in the scan record →SelectedAttention37

AG2 SandboxShellTool vulnerability: recursive grep under readonly can read ignore-hidden files

AG2 SandboxShellTool: files hidden with `ignore` are still readable through recursive `grep` / `diff` in readonly mode

AI summary

AG2's SandboxShellTool has a vulnerability: in readonly mode, sensitive files hidden with ignore can still be read by recursive grep/diff (CVE-2026-141554). ignore only checks the path words written in the command, not files the program opens itself, so cat .env is rejected while grep -r KEY . can print .env, private keys and the contents of the secrets directory. ag2 versions 0.13.3 to 1.3.3 are affected and it is fixed in 1.3.4; autogen 0.13.3 to 0.14.1 are affected and there is no fixed version yet. The reporter verified with a script simulating model turns and did not test a real model; the attacker also needs an output channel to exist in the deployment; the report is limited to readonly=True, and the documentation already states that when ignore is used alone, any program can run.

Why it was selected

The report provides a reproducible script and root cause analysis; deployments that use ignore plus readonly to hide sensitive files can check their own configuration accordingly.

Read originalgithub.com