Skip to content
High 8.8

AG2の SandboxShellTool で改行を使ったコマンド注入の脆弱性、任意のコマンドを実行されるおそれ

CVE-2026-113663 First seen on SecPulse

Summary

AG2の SandboxShellTool では、改行を含むコマンドによって許可されていない任意のコマンドを実行されるおそれがあります。影響を受けるのは ag2 の 0.13.2 から 1.1.1 未満、autogen の 0.13.2 から 0.14.1 までです。ag2 1.1.1 で修正されているため、該当する版をお使いの場合は修正版への更新をおすすめします。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

AG2の SandboxShellTool では、改行を含むコマンドによって許可されていない任意のコマンドを実行されるおそれがあります。影響を受けるのは ag2 の 0.13.2 から 1.1.1 未満、autogen の 0.13.2 から 0.14.1 までです。ag2 1.1.1 で修正されているため、該当する版をお使いの場合は修正版への更新をおすすめします。

Affected packages

PackageAffected → Fixed
ag2aiag2 —
ag2aiautogen —
pipag2
< 1.1.1→ 1.1.1
pipautogen
All versions→ Not listed
PyPIag2
≥ 0.13.2, < 1.1.1→ 1.1.1
PyPIautogen
0.13.2 – 0.14.1→ Not listed
Original description The description as published by the source.

AG2 is an open-source AgentOS. From 0.13.2 until ag2 1.1.1, and from autogen 0.13.2 to 0.14.1, SandboxShellTool configurations using allowed=[...] or readonly=True rely on ShellAdapter._filter and contains_shell_operator in ag2/tools/sandbox/filter.py and ag2/tools/sandbox/adapter/shell.py to validate a command prefix and reject selected shell syntax. The filter omits newline and carriage-return separators, while the accepted raw string is passed to sh -c, allowing an attacker-influenced agent command to execute an additional arbitrary statement. With the default LocalEnvironment backend, the injected statement runs as a host subprocess with the privileges of the agent process and can affect confidentiality, integrity, and availability. This issue is fixed in ag2 version 1.1.1.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details