AG2: Newline injection
Affects ag2Source GCVE Database
Not known to be exploited · CVSS 8.8 High : upgrade to 1.1.1 soon.
Data as of 10 Nov 2026, 17:35 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 8.8 |
|---|
- Patch
- Available – fixed in 1.1.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 5 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.
What to do
Upgrade ag2 to 1.1.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIag2 | Affected
| Fixed in
|
| PyPIautogen | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in ag2 version 1.1.1 that fixes this vulnerability. Users should upgrade to version 1.1.1 or later to remediate the issue. Until patched, do not rely on the allowed command or readonly restrictions as security boundaries, as they can be bypassed via newline injection.
Description
SandboxShellTool in ag2 versions >=0.13.2 and <1.1.1 allows bypassing command restrictions by embedding newline characters in commands. The tool's filter does not recognize newlines as shell operators, enabling execution of arbitrary shell commands via 'sh -c' despite configured allowlists or readonly restrictions. This leads to full host command execution, not sandboxed, posing a high-severity risk. The issue is fixed in version 1.1.1.
References
- github.com/ag2ai/ag2/security/advisories/GHSA-2h4w-29cv-2cmv (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-113663 (opens in a new tab)
- github.com/ag2ai/ag2/commit/3cd86726bb731eb11d6270f0ef9e50e42b5abb39 (opens in a new tab)
- github.com/ag2ai/ag2 (opens in a new tab)
- github.com/ag2ai/ag2/releases/tag/v1.1.1 (opens in a new tab)