Brief · Builders
A newline and a find command walk past two AI agents' command allowlists
CVE-2026-125368, published Nov 9, says OmniAgent, an open-source agent project with about 2,600 stars on GitHub, treats any bash command that starts with find as safe and skips the human approval step for it. The trouble is that find -execdir runs other programs. A prompt-injected agent can use it to run dd, nc, perl or openssl with no approval, and overwrite files or execute code. VulnCheck rates it 7.7. There's no fix. The bug covers OmniAgent through commit 12b98c5, which is still the latest commit (Jul 27), the project has no releases, and the GitHub issue reporting it has been open with no replies since Oct 23.
CVE-2026-113663 is the same idea in AG2's SandboxShellTool. When you restrict the tool with allowed=[...] or readonly=True, it checks that the command starts with an allowed prefix and rejects shell operators like ;, | and &&. It doesn't reject a newline, and the command then runs through sh -c, which treats a newline exactly like ;. So an allowed command, a newline, and then anything at all gets through. With the default LocalEnvironment backend, that's a real process on the host, and AG2's own docstring says "there is no real isolation." The advisory rates it 8.8. It's fixed in the ag2 package from 1.1.1 (the latest is 1.3.0), but the same advisory lists the older autogen package, versions 0.13.2 through 0.14.1, with no patched version, and 0.14.1 is still the newest autogen on PyPI.
Neither CVE is on CISA's Known Exploited Vulnerabilities list, and neither advisory reports any exploitation.
What to do:
-
Upgrade AG2 to 1.1.1 or later, and move off the
autogenpackage.- Why:
ag21.1.1 fixes the newline bypass, whileautogen0.13.2 through 0.14.1 has no fix at all. - How: Run
pip show ag2 autogento see which you have. Upgradeag2to the latest release, and if you're onautogenin the affected range, switch that project to theag2package.
- Why:
-
Keep OmniAgent away from content you didn't write until it's fixed.
- Why: There's no patch, and the way in is prompt injection, so any page, file or repo the agent reads can carry the command.
- How: Don't point it at untrusted web pages, documents or repos, and run it in a throwaway container or VM with no secrets or credentials inside.
-
Treat any command allowlist as a speed bump, not a sandbox.
- Why: Both bugs are prefix checks. The command starts the right way, and nothing reads the rest of it.
- How: Run agent shell tools inside a real sandbox with nothing valuable in it, and keep a human approval step for anything that writes files or touches the network.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.