Critical AI Agent Flaw in AWS Bedrock AgentCore Bypassed Model Security, Enabling Unauthorized Tool Execution
A significant security vulnerability has been identified and patched in Amazon Bedrock AgentCore's InvokeHarness API, allowing for the unauthorized execution of agent tools. The flaw, designated CVE-2026-18830 and carrying a CVSS v4.0 score of 8.6, stemmed from insufficient input validation within the AgentCore harness. This allowed an authenticated remote user to inject a tool-use content block directly into the final message of an InvokeHarness request. Crucially, the event loop would then dispatch the named tool without requiring authorization from the underlying AI model. AWS has confirmed that this issue affected the managed InvokeHarness API prior to July 31, 2026, and has since implemented server-side validation to reject caller-supplied tool-use blocks before they could reach the event loop.
This vulnerability is particularly impactful for practitioners leveraging AI agents for automated tasks, as it demonstrates a critical bypass of established security mechanisms. The core problem was the ability to circumvent the AI model's decision-making process, which is typically relied upon to enforce safety, content filters, and guardrails. In scenarios where agents are wired to sensitive tools—such as those interacting with databases, APIs, or infrastructure—this flaw could have led to unauthorized data access, system modifications, or even broader compromise. The fact that the model never ran in certain attack paths meant that all the sophisticated controls built into the AI itself were rendered ineffective.
This incident fits into a broader, well-established trend in cloud and AI security, emphasizing that security must be layered and cannot solely rely on a single control point, even one as seemingly robust as an AI model. As organizations increasingly adopt agentic AI architectures, the attack surface expands beyond traditional application and infrastructure vulnerabilities to include the interaction layers and harnesses that connect AI models to external tools. Similar vulnerabilities, albeit with different attack conditions, were also reported in Google's Agent Development Kit (ADK) and Vercel's AI SDK harness packages, underscoring a systemic challenge in securing these emerging AI paradigms. The industry is grappling with how to ensure that the 'human-in-the-loop' or 'model-in-the-loop' principles are genuinely enforced at every stage of an agent's operation.
In practice, this means that DevOps and security teams must adopt a 'zero-trust' approach to AI agent interactions. Practitioners should not assume that an AI model's internal guardrails are sufficient to prevent malicious or unintended tool execution. Instead, independent authorization and validation checks must be implemented at the tool gateway layer, separate from the AI model's inference process. This includes rigorous input validation, explicit permission checks for tool invocations, and comprehensive logging and monitoring of all agent activities, especially tool calls. Furthermore, understanding the blast radius of each tool an agent can access is crucial; limiting an agent's permissions to the absolute minimum required for its function can significantly mitigate the impact of such vulnerabilities. Regular security audits and penetration testing specifically targeting the agent-tool interaction layer are now essential for any organization deploying AI agents in production.
Read original source