CVE-2026-107286: Pydantic AI streamed requests leak concurrency slots, causing denial of service
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-107286
- Published
- Record updated
- Affected
- pydantic-ai >= 2.10.0, < 2.53.0
- pydantic-ai-slim >= 2.10.0, < 2.53.0
- Fixed in
- 2.53.0
- pydantic-ai 2.53.0 released October 1, 2026, 6 days before disclosure
- pydantic-ai-slim 2.53.0 released October 1, 2026, 6 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
Pydantic AI versions 2.10.0 through 2.53.0 have a flaw in streamed requests made through ConcurrencyLimitedModel or limit_model_concurrency. Because anyio.CapacityLimiter ties an acquired slot to the borrowing task while streaming cleanup can run in a different task, early termination, cancellation, consumer exceptions, or complete stream_text() consumption with debounce_by=0.1 can leave shared concurrency slots occupied. Later requests on the long-lived limiter can then be blocked, causing a denial of service. Agent-level max_concurrency and non-streaming model requests are not affected.
Mitigation
Fixed in version 2.53.0.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- pydantic-aiPyPILLM dependency since 2024-05-20 · 4 tracked dependents
- pydantic-ai-slimPyPILLM dependency since 2024-11-25 · 7 tracked dependents
Topics
Related items
- HighCVE-2026-123356: GROBID unauthenticated thread exhaustion through /api/modelTraining endpointSimilar attack · NVD/CVE Database
- MediumCVE-2026-83494: training-operator immutability check bypass in PyTorchJob ValidateUpdate webhookSimilar attack · NVD/CVE Database
- CriticalCVE-2026-48705: MONAI PydicomReader affine computation accepts non-finite DICOM valuesSimilar attack · NVD/CVE Database
- LowCloakFEM: Agentic FEM Code Generation for Red-Teaming Computational Resource ExhaustionSimilar attack · Arxiv (cs.CR + cs.CL + cs.LG)
- MediumThe Rise of LLMJacking: How Threat Actors Monetize Compromised Cloud and Model ResourcesSimilar attack · Google Threat Intelligence