Agent Development Kit (Adk) For Python
A code injection issue exists in the `adk web` development interface. The software uses an incomplete denylist (` BLOCKED MODULES`) to restrict dangerous Python standard-library modules. An unauthenticated remote attacker can bypass this validation by providing a crafted YAML configuration containing a Python reference to a module not included in the denylist. This allows the attacker to resolve an unsafe callable as a tool within the agent's executable graph. By then providing a crafted saved test session, the attacker can trigger a `functionCall` that invokes the resolved callable with attacker-controlled content, leading to arbitrary code execution within the `adk web` process or container. This issue specifically affects Python (OSS), Cloud Run, and GKE environments where `pytest` is installed.