CVE-2026-141554
Received Received - Intake

SandboxShellTool File Disclosure via Recursive Command Execution

Vulnerability report for CVE-2026-141554, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-03
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
ag2 agentos From 0.13.3 (inc) to 1.3.4 (inc)
ag2ai ag2 From 0.13.3 (inc) to 1.3.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-863 The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects the AG2 AgentOS between versions 0.13.3 and 1.3.3. It involves the SandboxShellTool with readonly=True and ignore patterns failing to block recursive operations like grep -r or diff -r from accessing ignored files. The tool's ignore feature only checks direct command paths, not files discovered during execution, allowing unauthorized access to sensitive files like .env or secrets/** if an attacker injects commands.

Detection Guidance

To detect this vulnerability, check if your ag2 system is running a version between 0.13.3 and 1.3.3. Run: ag2 --version. If the version is within this range, the system is vulnerable. Additionally, monitor for commands like grep -r, egrep -r, fgrep -r, or diff -r being executed in sandboxed environments with readonly=True and ignore patterns configured.

Impact Analysis

If you use AG2 with SandboxShellTool configured with readonly=True and ignore patterns, an attacker could exploit this to access files meant to be hidden. This could lead to exposure of sensitive data like configuration files or secrets. The impact is limited due to the low CVSS score (3.1), but it undermines intended access controls.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, which may violate compliance requirements under GDPR (data protection) or HIPAA (health information privacy). Organizations using AG2 must ensure proper access controls to avoid regulatory penalties.

Mitigation Strategies

Upgrade ag2 to version 1.3.4 or later immediately. Run: pip install --upgrade ag2. If upgrading is not possible, avoid using SandboxShellTool with readonly=True and ignore patterns. Disable recursive commands like grep -r in sandboxed environments until patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-141554. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...