Friday, 4 December 2026
4 agent hacks today▼ 3 vs yesterday (7)

AG2 SandboxShellTool newline injection enables arbitrary command execution

A newline injection vulnerability in AG2's SandboxShellTool bypasses command allowlist and readonly restrictions, allowing arbitrary shell command execution on the host system. An agent or prompt injection can exploit this to run unrestricted commands despite tool configuration.

Disclosed 21 September 2026 · Record updated 10 November 2026

Impact

Arbitrary command execution on host system; bypasses SandboxShellTool security restrictions including allowed command allowlist and readonly mode

Our coverage

Sources

  1. github.comhttps://github.com/advisories/GHSA-2h4w-29cv-2cmv