{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-113663","id":"CVE-2026-113663","title":"AG2 command execution bypass in sandbox shell filtering","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 s","descriptionLong":"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.","published":"2026-11-05T22:53:40.444Z","updated":"2026-11-14T02:30:37.458057283Z","reserved":"2026-10-20T14:27:46.641Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["ag2ai ag2","ag2ai autogen"],"affectedProducts":[{"vendor":"ag2ai","product":"ag2","defaultStatus":null,"versions":[{"version":">= 0.13.2, < 1.1.1","status":"affected"}],"platforms":[]},{"vendor":"ag2ai","product":"autogen","defaultStatus":null,"versions":[{"version":">= 0.13.2, <= 0.14.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"ag2","purl":"pkg:pypi/ag2","ranges":[">=0.13.2 <1.1.1"],"fixed":["1.1.1"],"advisory":"GHSA-2h4w-29cv-2cmv"},{"ecosystem":"PyPI","name":"autogen","purl":"pkg:pypi/autogen","ranges":[">=0.13.2 <=0.14.1"],"fixed":[],"advisory":"GHSA-2h4w-29cv-2cmv"}],"cwes":["CWE-78","CWE-184"],"aliases":["GHSA-2h4w-29cv-2cmv"],"references":[{"url":"https://github.com/ag2ai/ag2/security/advisories/GHSA-2h4w-29cv-2cmv","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/ag2ai/ag2/commit/3cd86726bb731eb11d6270f0ef9e50e42b5abb39","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/ag2ai/ag2/releases/tag/v1.1.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113663.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113663","tags":["advisory"]},{"url":"https://github.com/ag2ai/ag2","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00347,"epssPercentile":0.29075,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-113663","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113663","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-113663","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2h4w-29cv-2cmv","ok":true,"note":"GHSA-2h4w-29cv-2cmv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-113663","ok":true,"note":"scored 2026-11-20"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}