CVE-2026-141554: Ignore-policy bypass in AG2 SandboxShellTool
CVE-2026-141554 is an incorrect-authorization vulnerability in AG2 SandboxShellTool affecting versions 0.13.3 through 1.3.3. When readonly=True and ignore patterns are configured, ShellAdapter._filter() delegates validation to check_ignore(), which checks explicit command-line paths but not files subsequently discovered by permitted programs. Recursive grep, egrep, fgrep, and directory-reading diff operations can consequently read ignored files through directory operands, including an implicit current-directory search. Protected file contents can appear in tool results despite direct access being blocked. Disclosure to an external attacker additionally requires an observable output channel. AG2 version 1.3.4 fixes the vulnerability.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The vulnerability compromises confidentiality by allowing ignored files, potentially including credentials, private keys, and other project secrets, to appear in the agent's execution context. An attacker who can influence the agent and observe its responses, tool output, or execution history may obtain those contents. The vulnerability does not itself provide an external exfiltration channel, and no direct integrity or availability impact is established.
Mitigation
If you can’t patch tonight, do this now.
Do not treat readonly=True and ignore patterns as a filesystem confidentiality boundary. Remove sensitive files from the agent-accessible environment or enforce isolation that prevents the tool's execution identity from reading them. Until upgraded, reject recursive grep, egrep, fgrep, and directory-reading diff invocations where explicit or implicit directory operands can include ignored files, accounting for alternative and bundled recursion options. Restrict attacker-observable agent output and execution-history access to reduce external disclosure opportunities.
Remediation
Patch, then assume compromise.
Upgrade the ag2 PyPI package to version 1.3.4 or later. The fix checks directory contents before permitting directory-reading utilities, accounts for implicit working-directory searches, validates symbolic-link paths and targets, and denies operations when required checks cannot be completed. Inventory legacy autogen dependencies as well: the affected autogen range extends through 0.14.1, but a fixed autogen package version is not specified.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-141554 exploited in the wild?
- As of Dec 4, 2026, Mallory has no reports of CVE-2026-141554 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-141554?
- Yes. As of Dec 4, 2026, Mallory has reports of a public exploit for CVE-2026-141554.
- Is there a patch for CVE-2026-141554?
- Upgrade the ag2 PyPI package to version 1.3.4 or later. The fix checks directory contents before permitting directory-reading utilities, accounts for implicit working-directory searches, validates symbolic-link paths and targets, and denies operations when required checks cannot be completed.
- How severe is CVE-2026-141554?
- CVE-2026-141554 has a CVSS v3.1 score of 3.1 (Low) and an EPSS score of 0.57% (49th percentile) as of Dec 4, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.