# CVE-2026-141554: AG2 SandboxShellTool: files hidden with \`ignore\` are still readable through recursive \`grep\` / \`diff\` in readonly mode

- **Severity:** LOW 3.1
- **CVSS:** 3.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **CWE:** CWE-863
- **Aliases:** GHSA-xhqj-2fcc-8vf7
- **Published:** 2026-12-02T19:58:39.477Z
- **Modified:** 2026-12-02T23:55:13.000Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can read files hidden by ignore rules in AG2 SandboxShellTool through recursive grep or diff commands in readonly mode, exposing ignored files in tool output.

## Who should check

- Projects that depend on PyPI package ag2 (\>= 0.13.3, \<= 1.3.3)
- Projects that depend on PyPI package autogen (\>= 0.13.3, \<= 0.14.1)
- Anyone running ag2ai ag2 \>= 0.13.3, \< 1.3.4
- Anyone running ag2ai autogen \>= 0.13.3, \<= 0.14.1

## Description

AG2 is an open-source AgentOS. From 0.13.3 until 1.3.4, SandboxShellTool configured with readonly=True and ignore can return ignored files when an allowed recursive grep, egrep, fgrep, or diff opens files inside a directory, including the implicit current directory. ShellAdapter.\_filter() in ag2/tools/sandbox/adapter/shell.py calls check\_ignore() in ag2/tools/sandbox/filter.py, which checks paths written in the command but not files discovered by the program. An agent processing attacker-controlled content may issue such a command and expose the files in the tool result; disclosure to the attacker additionally requires an output channel in the deployment. This issue is fixed in version 1.3.4.

## Affected and fixed versions

- PyPI `ag2`: affected \>= 0.13.3, \<= 1.3.3; fixed 1.3.4 (ghsa)
- PyPI `autogen`: affected \>= 0.13.3, \<= 0.14.1; fixed no fix listed yet (ghsa)
- ag2ai ag2: \>= 0.13.3, \< 1.3.4 (cvelist)
- ag2ai autogen: \>= 0.13.3, \<= 0.14.1 (cvelist)

## Technologies

PyPI packages, Python (AI-matched)

## Mitigation

- Upgrade ag2 to 1.3.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-141554. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-141554.md
Affected: ag2 >= 0.13.3, <= 1.3.3; autogen >= 0.13.3, <= 0.14.1
Fixed in: 1.3.4

Steps:
1. Search this machine and project for ag2 (PyPI), autogen (PyPI), ag2ai ag2, ag2ai autogen: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-141554 being exploited?

There is no confirmed exploitation: CVE-2026-141554 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-141554?

Low: CVSS 3.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-141554?

ag2 \>= 0.13.3, \<= 1.3.3; autogen \>= 0.13.3, \<= 0.14.1.

### Is there a fix for CVE-2026-141554?

Yes. Fixed in 1.3.4. Upgrade ag2 to 1.3.4 or later.

### How do I check if I'm affected by CVE-2026-141554?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ag2ai/ag2/security/advisories/GHSA-xhqj-2fcc-8vf7>
- patch: <https://github.com/ag2ai/ag2/commit/92e842709be3010853e9964905cd23487385e570>
- patch: <https://github.com/ag2ai/ag2/commit/c1d943df06f0506269f9a6c7312afaf47c3c4871>
- other: <https://github.com/ag2ai/ag2/releases/tag/v1.3.4>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-141554>
- other: <https://github.com/advisories/GHSA-xhqj-2fcc-8vf7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-141554>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-xhqj-2fcc-8vf7> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-141554> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-141554>
