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

GHSA-7494-925C-RRXV

Tool schemas with repeated definition references expand exponentially for models that need inlined schemas

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

Parche disponible
Descargar PNG JSON
CVSS 3.1
6.5
Media
CVSS:3.1/AV:N/AC:L/PR:L/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, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Se arregla en el próximo ciclo. Sin estrés.Hoy toca mantenimiento, no heroísmo.
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-7494-925C-RRXV divulgada · CVSS 6.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

For models whose profile requires tool schemas without `$defs` and `$ref`, Pydantic AI inlines each referenced definition at every place it is referenced. A tool schema of a few kilobytes whose definitions reference one another repeatedly expands exponentially, using CPU and memory on the event loop each time a model request is prepared. Through the AG-UI adapter, a client submits the schemas of its own frontend tools, so a client can supply such a schema.

Details

This affects applications that serve an agent through the AG-UI adapter (`AGUIAdapter`, `handle_ag_ui_request`, `AGUIApp`) with a model whose schema definitions are inlined, including Amazon Nova, Meta Llama and Qwen models and, in recent releases, Mistral, Z.AI GLM and some OpenRouter and Azure-hosted models. Tool schemas from MCP servers reach the same code, but the application chooses those servers.

Expanding one crafted schema can take minutes of CPU time and gigabytes of memory, blocking other work in the process, and the expansion repeats for every model request in the run.

The assumed attacker is an authenticated client of the AG-UI endpoint; the UI documentation requires running the adapter behind application authentication.

Mitigation

Upgrade to a patched version. Until then, drop or limit client-submitted tools before passing the run input to the adapter, for example by rejecting tool schemas that contain `$defs`, or use a model that does not inline schema definitions.

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:L
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
8.3/ 10Alto
Vector 8.3 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
pydantic-ai · pydantic-ai-slim≥ 0.4.4 ≤ 1.107.9
pydantic-ai · pydantic-ai-slim≥ 2.0.0b1 ≤ 2.65.0
0.4.4
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-7494-925c-rrxv

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