GHSA-484X-X9M4-62CJ
Decision models expand tool argument schemas without a limit
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:L/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-484X-X9M4-62CJ 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 |
Summary
Decision models (`DecisionModel` subclasses such as `OpenAIDecisionsModel`, and `TypeSafeModel`) turn a tool's argument schema into individual questions, resolving every `$ref` again at each place it appears. A small schema whose definitions reference one another repeatedly makes this take exponential time and memory on the event loop. Tools whose schemas come from a client, such as AG-UI frontend tools, reach this code.
Details
This affects applications that use a decision model with tools whose schemas an attacker can supply, most directly an AG-UI endpoint, where the client submits its frontend tools' schemas. From 2.50.0, every request expands the schema of every offered tool. From 2.46.0 through 2.49.x, only `TypeSafeModel` did, and only for the tool the model selected.
One crafted schema can block the event loop for minutes and exhaust process memory, delaying other work in the same process.
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`.
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 | 2.66.0 | 0 d | 2.68.0 no afectada |
pypipydantic-ai-slim |
Corregida | 2.66.0 | 0 d | 2.71.0 no afectada |
2.66.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-484x-x9m4-62cjLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
