{"id":"CVE-2026-107286","published":"2026-10-08T15:12:26Z","modified":"2026-10-08T17:27:24Z","title":"Pydantic AI: Concurrency-limited models can keep their slot when a streamed request ends early","vendor":"pydantic","product":"pydantic-ai","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0063,"percentile":0.44621,"provenance":"source"},"cwes":[{"id":"CWE-772","name":"Missing Release of Resource after Effective Lifetime"}],"references":[{"url":"https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-6fqq-452j-qhrp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pydantic/pydantic-ai/pull/9478","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/commit/453f19feeb7ab1d789f9393b1723c6a73b3d77b2","tags":["x_refsource_MISC"]},{"url":"https://github.com/pydantic/pydantic-ai/releases/tag/v2.53.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.92},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"pydantic","affectedVersions":[{"vendor":"pydantic","product":"pydantic-ai","versions":[">= 2.10.0, < 2.53.0"]},{"vendor":"pydantic","product":"pydantic-ai-slim","versions":[">= 2.10.0, < 2.53.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-08T17:26:50.651820Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pydantic-ai","vulnerableRanges":[">=2.10.0, <2.53.0"],"patched":["2.53.0"],"from":["GHSA-6fqq-452j-qhrp","PYSEC-2026-4276"],"provenance":"source"},{"ecosystem":"PyPI","package":"pydantic-ai-slim","vulnerableRanges":[">=2.10.0, <2.53.0"],"patched":["2.53.0"],"from":["GHSA-6fqq-452j-qhrp","PYSEC-2026-4285"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-95039","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pydantic-ai-cve-2026-107286","children":[{"from":"CVE-2026-107286","to":"CVE-2026-107292","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pydantic_ai_slim/pydantic_ai/agent/__init__.py"],"commits":["https://github.com/pydantic/pydantic-ai/commit/453f19feeb7ab1d789f9393b1723c6a73b3d77b2","https://github.com/pydantic/pydantic-ai/commit/394cc1d31656620704a703a2daed752afa5135fe","https://github.com/pydantic/pydantic-ai/commit/871c7aeec5dfed2138655ccbccbf15c6d763bae7"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-107290","published":"2026-10-08","fixed":"2.44.0","kev":false},{"cve":"CVE-2026-107291","published":"2026-10-08","fixed":"2.44.0","kev":false},{"cve":"CVE-2026-107287","published":"2026-10-08","fixed":"2.52.0","kev":false,"link":{"from":"CVE-2026-107287","to":"CVE-2026-107286","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai","fromFixed":"2.52.0","toFixed":"2.53.0","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:pydantic-ai-slim","fromFixed":"2.52.0","toFixed":"2.53.0","daysApart":0}]}},{"cve":"CVE-2026-107286","published":"2026-10-08","fixed":"2.53.0","kev":false}],"package":"PyPI:pydantic-ai"}}