llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · pydantic-ai

GHSA-M5VJ-8MCW-82QX

Local web fetching can exhaust memory and block the event loop when it formats nested JSON

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición17 dDesde la divulgación, 4 nov 2026, 6:51 a. m.
Detección15 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Saqué la lupa: aquí hay algo que investigar.Esto huele a PoC esperando su momento.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 2.66.0
Monitoreo
Detectada +1
4 nov 26
20 nov 26
21 nov 26
4 nov 26
8 nov 26
13 nov 26
17 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-M5VJ-8MCW-82QX divulgada · CVSS 7.5 (GitHub)
Remediación Parche 2.66.0 pydantic-ai · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

Pydantic AI's local web-fetch tool re-indents a JSON response before it applies its returned-content limit, and does so on the event loop. Indented output grows with nesting depth, so a deeply nested document within the download size limit can expand to hundreds of times its size, using large amounts of memory and delaying other work in the same process.

Details

This affects applications that use `web_fetch_tool`, or the `WebFetch` capability's local fallback, on URLs an attacker can choose or influence. Provider-native web fetching is not affected.

The download size limit bounds the response, and `max_content_length` bounds what the model receives, but neither bounds the formatting step in between. A single fetch can stall other agent runs and requests served by the same process, and can exhaust the memory available to it.

The assumed attacker can get the agent to fetch a URL they control, for example by prompting an agent that has the tool when unauthenticated users can prompt it.

Mitigation

Upgrade to a patched version. Until then, restrict local web fetching to trusted hosts with `allowed_domains`, or use provider-native web fetching.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
pydantic-ai · pydantic-ai-slim≥ 1.77.0 ≤ 1.107.9
pydantic-ai · pydantic-ai-slim≥ 2.0.0b1 ≤ 2.65.0
1.77.0
1.107.9
2.0.0b1
2.65.0
2.68.0
2.71.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypipydantic-ai
Corregida 2.66.0 0 d 2.68.0 no afectada
pypipydantic-ai-slim
Corregida 2.66.0 0 d 2.71.0 no afectada
Versiones corregidas2.66.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/pydantic/pydantic-ai/security/advisories/GHSA-m5vj-8mcw-82qx

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.