CVE-2026-133161
Pydantic AI Harness denial of service via ANSI stripping in ToolOutputLimits
An attacker can send crafted tool output to stall the event loop, delaying other requests and agent runs.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 0.70.0 | pydantic-ai-harness · -2 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-133161 divulgada · CVSS 7.5 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The pydantic-ai-harness package's ToolOutputLimits capability can be made to stall the event loop when ANSI stripping is enabled, delaying other requests and agent runs in the same process. An attacker who can place text in content a tool returns, such as shell output, file contents, fetched pages, or MCP server responses, can trigger this remotely without logging in or any user action.
Affects pydantic-ai-harness versions 0.4.0 through 0.69.0 in applications that run tools whose output an attacker can influence. The checked facts list no fixed version.
Descripción original del registro (Pydantic)
### Summary ui With `strip_ansi=True`, Pydantic AI Harness's `ToolOutputLimits` capability removes ANSI escape sequences from tool output with a pattern that takes time quadratic in the length of a line. A tool result of a few hundred kilobytes, crafted with many unterminated escape sequences, can occupy the event loop for tens of seconds to minutes, delaying every other request and agent run in the process. ### Details This affects applications that set `strip_ansi=True` on `ToolOutputLimits` (named `OverflowingToolOutput` before 0.13.0) and run tools whose output an attacker can influence, such as shell commands, file reads, fetched pages or MCP servers. Stripping runs on the event loop before the capability reduces the output, so its own size limits do not bound it. The assumed attacker can place text in content a tool returns. ### Mitigation Upgrade `pydantic-ai-harness` to 0.70.0 or later. Until then, leave `strip_ansi` at its default, `False`. On Pydantic AI v1, the harness cannot be upgraded past 0.4.0. Upgrade to Pydantic AI v2 and `pydantic-ai-harness` 0.70.0, or leave `strip_ansi` off.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypipydantic-ai-harness |
Corregida | 0.70.0 | -2 d | 0.71.0 no afectada |
0.70.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-m4cr-m4qc-9hh3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
