LowVulnerability
GHSA-xhqj-2fcc-8vf7: AG2 SandboxShellTool: files hidden with `ignore` are still readable through recursive `grep` / `diff` in readonly mode
- Identifiers
- CVE-2026-141554GHSA-xhqj-2fcc-8vf7
- Published
- Record updated
- Affected
- autogen >= 0.13.3, <= 0.14.1
- ag2 >= 0.13.3, <= 1.3.3, fixed in 1.3.4
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
Summary
AG2's SandboxShellTool with readonly=True and ignore patterns refuses commands that name an ignored path, but still allows recursive grep and diff to read those files. In the reporter's tests on ag2 1.3.2 and 1.3.1, `grep -r KEY .` printed the contents of `.env`, `*.key` and `secrets/**` while `cat .env` was denied. Exploitation requires the model to run the recursive command after processing attacker-controlled content, plus an output channel in the deployment.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- ag2PyPILLM dependency since 2024-11-13, 2 tracked dependents
- autogenPyPILLM dependency since 2019-10-19, 2 tracked dependents
Related items
- MediumFast But Noisy CyberStrikeAI-Assisted Attack Hits ISPSimilar attack, Dark Reading
- MediumARTEX Exposure: What Enterprises Must Do Against AI AttacksSimilar attack, Straiker Blog
- MediumCVE-2026-142248: MLflow through 3.18.0 contains a server-side request forgery vulnerability in the AI Gateway LiteLLM provider that…Similar attack, NVD/CVE Database
- MediumCVE-2026-142180: crewai-files server-side request forgery in FileUrl file sourceSimilar attack, NVD/CVE Database
- MediumFederal Agencies Targeted in AI-Assisted Attacks as CISA, FBI Release GuidanceSimilar attack, SecurityWeek