p PatchFirst

CVE-2026-107286

CVE-2026-107286 · Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early

Здесь приведены факты из открытых источников об уязвимостях. Перед обновлением ознакомьтесь с исходным сообщением.

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 · Высокий · EPSS 0,4% · Есть исправление

Опубликовано
Обновлено

Стек: python

Затронутые продукты и версии

  • pydantic-ai

    Версии
    • >= 2.10.0, < 2.53.0: Затронуто

    Нет опубликованного исправления

  • pydantic-ai-slim

    Версии
    • >= 2.10.0, < 2.53.0: Затронуто

    Нет опубликованного исправления

  • pydantic-ai PyPI

    Версии
    • 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
    Затронутые диапазоны версий
    • ECOSYSTEM: ≥ 2.10.0, < 2.53.0

    Обновитесь до 2.53.0

  • pydantic-ai-slim PyPI

    Версии
    • 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
    Затронутые диапазоны версий
    • ECOSYSTEM: ≥ 2.10.0, < 2.53.0

    Обновитесь до 2.53.0

Первоисточники

Проверьте свой сервер →