# CVE-2026-113663: AG2: Newline injection in SandboxShellTool bypasses allowed=[...] and readonly=True, enabling arbitrary command execution

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-11-05T22:53:40.444Z
- Modified: 2026-11-12T22:18:35.610Z
- Also known as: GHSA-2h4w-29cv-2cmv
- Weaknesses: CWE-78, CWE-184
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ag2ai ag2: >= 0.13.2, < 1.1.1
- ag2ai autogen: >= 0.13.2, <= 0.14.1
- ag2 (PyPI): from 0.13.2 before 1.1.1
- autogen (PyPI): from 0.13.2 up to 0.14.1

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ag2ai/ag2/security/advisories/GHSA-2h4w-29cv-2cmv> (web)
- <https://github.com/ag2ai/ag2/commit/3cd86726bb731eb11d6270f0ef9e50e42b5abb39> (web)
- <https://github.com/ag2ai/ag2/releases/tag/v1.1.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113663> (advisory)
- <https://github.com/ag2ai/ag2> (package)

## Sources

- CVE List: [CVE-2026-113663](https://www.cve.org/CVERecord?id=CVE-2026-113663), CVE Terms of Use, modified 2026-11-09
- GitHub Advisory Database: [GHSA-2h4w-29cv-2cmv](https://github.com/advisories/GHSA-2h4w-29cv-2cmv), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-113663](https://nvd.nist.gov/vuln/detail/CVE-2026-113663), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-113663 · Whole record: https://cve.day/CVE-2026-113663.json · Rebuilt by cve.day 2026-11-25T22:59:49.206Z
