CVE-2026-107286
CVE-2026-107286 · Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 2.10.0 until 2.53.0, streamed requests made through ConcurrencyLimitedModel or limit_model_concurrency can retain shared concurrency slots because anyio.CapacityLimiter associates an acquired slot with the borrowing task while streaming cleanup can run in a different task. Early stream termination, cancellation, consumer exceptions, or complete stream_text() consumption with debounce_by=0.1 can therefore leave capacity occupied, eventually preventing later requests that share the long-lived limiter from proceeding and causing a denial of service. Agent-level max_concurrency and non-streaming model requests are not affected. This issue is fixed in version 2.53.0.
CVSS 7.5 · Alta · EPSS 0,4% · Corrección disponible
- Publicación
- Actualización
Pila tecnológica: python
Productos y versiones afectados
pydantic-ai
- Versiones
- >= 2.10.0, < 2.53.0: Afectada
Sin corrección publicada
pydantic-ai-slim
- Versiones
- >= 2.10.0, < 2.53.0: Afectada
Sin corrección publicada
pydantic-ai PyPI
- Versiones
- 2.10.0
- 2.11.0
- 2.12.0
- 2.13.0
- 2.14.0
- 2.14.1
- 2.15.0
- 2.16.0
- 2.17.0
- 2.18.0
- 2.19.0
- 2.20.0
- 2.21.0
- 2.22.0
- 2.23.0
- 2.24.0
- 2.25.0
- 2.26.0
- 2.27.0
- 2.27.1
- 2.28.0
- 2.29.0
- 2.30.0
- 2.31.0
- 2.31.1
- 2.32.0
- 2.32.1
- 2.32.2
- 2.33.0
- 2.34.0
- 2.35.0
- 2.35.1
- 2.35.3
- 2.36.0
- 2.37.0
- 2.38.0
- 2.39.0
- 2.40.0
- 2.41.0
- 2.42.0
- 2.43.0
- 2.44.0
- 2.45.0
- 2.46.0
- 2.47.0
- 2.48.0
- 2.49.0
- 2.50.0
- 2.51.0
- 2.52.0
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 2.10.0, < 2.53.0
Actualiza a 2.53.0
pydantic-ai-slim PyPI
- Versiones
- 2.10.0
- 2.11.0
- 2.12.0
- 2.13.0
- 2.14.0
- 2.14.1
- 2.15.0
- 2.16.0
- 2.17.0
- 2.18.0
- 2.19.0
- 2.20.0
- 2.21.0
- 2.22.0
- 2.23.0
- 2.24.0
- 2.25.0
- 2.26.0
- 2.27.0
- 2.27.1
- 2.28.0
- 2.29.0
- 2.30.0
- 2.31.0
- 2.31.1
- 2.32.0
- 2.32.1
- 2.32.2
- 2.33.0
- 2.34.0
- 2.35.0
- 2.35.1
- 2.35.3
- 2.36.0
- 2.37.0
- 2.38.0
- 2.39.0
- 2.40.0
- 2.41.0
- 2.42.0
- 2.43.0
- 2.44.0
- 2.45.0
- 2.46.0
- 2.47.0
- 2.48.0
- 2.49.0
- 2.50.0
- 2.51.0
- 2.52.0
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 2.10.0, < 2.53.0
Actualiza a 2.53.0
Fuentes originales
- https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-6fqq-452j-qhrp
- https://github.com/pydantic/pydantic-ai/pull/9478
- https://github.com/pydantic/pydantic-ai/commit/453f19feeb7ab1d789f9393b1723c6a73b3d77b2
- https://github.com/pydantic/pydantic-ai/releases/tag/v2.53.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-107286