AG2 SandboxShellTool: files hidden with `ignore` are still readable through recursive `grep` / `diff` in readonly mode
Affects ag2Source GCVE Database
Not known to be exploited · CVSS 3.1 Low : upgrade to 1.3.4 when convenient.
Data as of 3 Dec 2026, 00:05 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 3.1 |
|---|
- Patch
- Available – fixed in 1.3.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Upgrade ag2 to 1.3.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIag2 | Affected
| Fixed in
|
| PyPIautogen | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in ag2 version 1.3.4 that addresses this issue. Operators should upgrade to version 1.3.4 or later to ensure ignore patterns are respected even with recursive grep and diff commands in readonly mode. Until patched, operators should avoid relying solely on ignore patterns with readonly mode to protect sensitive files from recursive command access. The vendor documentation notes this limitation and recommends isolated backends for programs that open paths internally.
Description
AG2 SandboxShellTool with readonly mode and ignore patterns intended to hide sensitive files does not prevent recursive grep or diff commands from reading those files. While direct access to ignored files is denied, recursive search commands bypass ignore checks and expose file contents. This affects ag2 versions 1.3.1 and 1.3.2, with a fix available in 1.3.4. The impact is limited to scenarios where an attacker can inject commands and receive output, which is not provided by the readonly shell tool itself.
References
- github.com/ag2ai/ag2/security/advisories/GHSA-xhqj-2fcc-8vf7 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-141554 (opens in a new tab)
- github.com/ag2ai/ag2/commit/92e842709be3010853e9964905cd23487385e570 (opens in a new tab)
- github.com/ag2ai/ag2/commit/c1d943df06f0506269f9a6c7312afaf47c3c4871 (opens in a new tab)
- github.com/ag2ai/ag2 (opens in a new tab)
- github.com/ag2ai/ag2/releases/tag/v1.3.4 (opens in a new tab)