GHSA-H4MW-J7QP-8MWM
Claude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Execution
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 0.2.121 | claude-agent-sdk · -91 d desde divulgación | |
| Divulgación | Publicada | GHSA-H4MW-J7QP-8MWM divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
The Claude Agent SDK for Python passed the `resume` option to the Claude CLI without validation, allowing a value beginning with `-` to be interpreted as a separate CLI flag. An attacker who controlled the `resume` value could inject an `--mcp-config` flag defining a stdio MCP server, resulting in arbitrary command execution at CLI startup that bypassed the SDK's permission controls. Exploitation required an application to pass untrusted input as the session ID to resume.
Users are advised to update to the latest version of the claude-agent-sdk package.
Thank you to hackerone.com/moamenmahmood for reporting this issue.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypiclaude-agent-sdk |
Corregida | 0.2.121 | -91 d | 0.2.186 no afectada |
0.2.121Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/anthropics/claude-agent-sdk-python/security/advisories/GHSA-h4mw-j7qp-8mwmhttps://github.com/anthropics/claude-agent-sdk-python/pull/1123https://github.com/anthropics/claude-agent-sdk-python/commit/347a1cb88d7652199399db1b7f914e0a459a6662https://github.com/anthropics/claude-agent-sdk-pythonhttps://github.com/anthropics/claude-agent-sdk-python/releases/tag/v0.2.121Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
