Skip to content
LowVulnerability

GHSA-xhqj-2fcc-8vf7: AG2 SandboxShellTool: files hidden with `ignore` are still readable through recursive `grep` / `diff` in readonly mode

Published
Record updated
View JSON
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.