VulnerabilitiesNewline character defeats AG2 shell tool command allowlist
A single line break lets an AG2 agent run arbitrary shell commands on the host, according to an advisory published on 10 November 2026.
10 Nov 2026
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
Arbitrary command execution on host system; bypasses SandboxShellTool security restrictions including allowed command allowlist and readonly mode
VulnerabilitiesA single line break lets an AG2 agent run arbitrary shell commands on the host, according to an advisory published on 10 November 2026.
10 Nov 2026