TL;DR: AG2 SandboxShellTool readonly mode with ignore lists leaks ignored files through recursive grep and diff; upgrade to ag2 1.3.4 or enforce command-level allowlists and output redaction.
AG2 SandboxShellTool operators who pair readonly=True with an ignore list expect sensitive files to stay hidden from agents. CVE-2026-141554 shows that expectation is wrong. Recursive grep and diff open files the agent never names in the command string, so the ignore filter never sees them. This advisory teardown covers the failure mechanics, blast radius, and defensive controls for teams shipping tool-calling agents.
Verified Key Facts
| Metric / Signal | Finding |
|---|---|
| CVE identifier | CVE-2026-141554 |
| Affected ag2 versions | >= 0.13.3, <= 1.3.3 |
| Patched ag2 version | 1.3.4 |
| Related high-severity newline injection | CVE-2026-113663 patched in ag2 1.1.1 |
| OWASP LLM01 reference | Prompt injection enabling indirect tool abuse via attacker-controlled content |
Inside the Full Technical Dispatch
- Threat Model & Attack Surface Matrix
- Why Naive Prompt Filters Fail
- Defense-in-Depth & Sandbox Isolation Architecture
- Runnable Guardrail Policy / Verification Code
- Operational Tradeoffs & False-Positive Budget
Read the full analysis, runnable configurations, benchmark tables, and primary source citations on Pyvren.
Originally published on Pyvren by Hamdi Soudani.
Top comments (0)