GHSA-4WHF-38HW-PXXH
Fetching attacker-controlled HTML with web_fetch_tool can delay other work in the same process
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-4WHF-38HW-PXXH divulgada · CVSS 7.5 (GitHub) | |
| Remediación | Parche 1.107.9 | pydantic-ai · 0 d desde divulgación | |
| Remediación | Parche 2.59.0 | pydantic-ai · 0 d desde divulgación | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Fetching attacker-controlled HTML with `web_fetch_tool` can delay other work in the same process or exhaust its memory.
Details
When `web_fetch_tool` converts a page containing many HTML elements, conversion can occupy a worker for an extended period. Concurrent fetches can occupy the shared worker pool and delay unrelated operations. Earlier affected versions performed conversion on the event loop. A page with very large tags can also make conversion use many times the page's size in memory, enough to exhaust the memory available to the process.
This requires an application to use the tool on HTML whose content an attacker can influence. The severity score assumes the worst reasonable deployment: unauthenticated users can prompt an agent that has `web_fetch_tool`, so the attacker chooses the URL.
Mitigation
Upgrade `pydantic-ai` or `pydantic-ai-slim` to v2.59.0 or v1.107.9, or a later release on the same major line. Until you can upgrade, avoid fetching attacker-controlled HTML with `web_fetch_tool`.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypipydantic-ai |
Corregida | 1.107.9, 2.59.0 | 0 d · 0 d | 2.68.0 no afectada |
pypipydantic-ai-slim |
Corregida | 1.107.9, 2.59.0 | 0 d · 0 d | 2.71.0 no afectada |
1.107.92.59.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-4whf-38hw-pxxhLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
