🔍 CVE-2026-107286

7.5
CVSS Score
HIGH
2026-10-08
2026-10-13 14:36
✅ 완료

🇰🇷 한글 설명

Pydantic AI 프레임워크의 특정 버전에서 스트리밍 요청 시 동시성 슬롯이 제대로 해제되지 않는 취약점이 발견되었습니다. 스트림이 조기에 종료되거나 예외가 발생할 경우 사용 중인 슬롯이 계속 점유되어, 결국 새로운 요청을 처리하지 못하는 서비스 거부(DoS) 상태를 유발할 수 있습니다.

💡 쉬운 설명

AI 모델에 질문을 던지고 답변을 받는 과정에서, 답변이 중간에 끊기면 시스템이 '아직 답변 중'이라고 착각하여 자원을 계속 붙잡고 있는 문제입니다. 이 문제가 반복되면 시스템의 자원이 모두 고갈되어 더 이상 새로운 질문을 받을 수 없게 됩니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Pydantic AI version 2.10.0 ~ 2.53.0 (ConcurrencyLimitedModel 또는 limit_model_concurrency 사용 시)

⚔️ 공격 벡터

스트리밍 요청을 의도적으로 조기에 종료하거나 예외를 발생시켜 동시성 슬롯을 점유함으로써 서비스 거부(DoS) 유도

🛡️ 대응 방법

Pydantic AI를 최신 버전인 2.53.0 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 2.53.0 미만(2.10.0 이상)인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
pip show pydantic-ai | grep Version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Python