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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-10-08T15:12:26.597Z
- Modified: 2026-10-15T14:55:42.276Z
- Also known as: GHSA-6fqq-452j-qhrp, PYSEC-2026-4276, PYSEC-2026-4285
- Weaknesses: CWE-772
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pydantic pydantic-ai: >= 2.10.0, < 2.53.0
- pydantic pydantic-ai-slim: >= 2.10.0, < 2.53.0
- pydantic-ai (PyPI): from 2.10.0 before 2.53.0
- pydantic-ai-slim (PyPI): from 2.10.0 before 2.53.0
- pydantic pydantic_ai: from 2.10.0 before 2.53.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/pydantic/pydantic-ai/security/advisories/GHSA-6fqq-452j-qhrp> (mitigation, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/pull/9478> (patch, vendor-advisory, web)
- <https://github.com/pydantic/pydantic-ai/commit/453f19feeb7ab1d789f9393b1723c6a73b3d77b2> (patch, web)
- <https://github.com/pydantic/pydantic-ai/releases/tag/v2.53.0> (patch, release-notes, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107286> (advisory)
- <https://github.com/pydantic/pydantic-ai> (package)
- <https://pypi.org/project/pydantic-ai> (package)
- <https://github.com/advisories/GHSA-6fqq-452j-qhrp> (advisory)
- <https://pypi.org/project/pydantic-ai-slim> (package)

## Sources

- CVE List: [CVE-2026-107286](https://www.cve.org/CVERecord?id=CVE-2026-107286), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-6fqq-452j-qhrp](https://github.com/advisories/GHSA-6fqq-452j-qhrp), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-107286](https://nvd.nist.gov/vuln/detail/CVE-2026-107286), Public domain, modified 2026-10-13
- PyPA Advisory Database: [PYSEC-2026-4276](https://osv.dev/vulnerability/PYSEC-2026-4276), CC-BY-4.0, modified 2026-10-15
- PyPA Advisory Database: [PYSEC-2026-4285](https://osv.dev/vulnerability/PYSEC-2026-4285), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-107286 · Whole record: https://cve.day/CVE-2026-107286.json · Rebuilt by cve.day 2026-11-25T22:59:43.172Z
