PT-2026-166276

CVE-2026-141554

·

Published

2026-12-02

·

Updated

2026-12-02

Description by

CVSS 3.1
3.1
Low
MetricsAV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions AG2 versions 0.13.3 through 1.3.3
Description In the SandboxShellTool, when configured with readonly=True and an ignore list, the tool may return files that were intended to be ignored. This occurs because the ShellAdapter. filter() function in ag2/tools/sandbox/adapter/shell.py calls check ignore() in ag2/tools/sandbox/filter.py, which only validates paths explicitly written in the command and not files discovered by the program during execution. Consequently, using recursive flags with allowed commands such as grep, egrep, fgrep, or diff (e.g., grep -r) can open and expose the contents of ignored files within a directory, including the implicit current directory.
An attacker providing malicious content to an agent could trigger such a command to expose sensitive files. For the attacker to actually receive this data, the deployment must also have an output channel, such as the agent's reply.
Recommendations Update AG2 to version 1.3.4. As a temporary workaround, avoid using the ignore parameter in combination with readonly=True if recursive search tools are permitted, or restrict the agent's ability to execute recursive commands.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-XHQJ-2FCC-8VF7
Found an issue in the description? Have something to add? Feel free to write us 👾