🇰🇷 한글 설명
Pydantic AI 프레임워크의 특정 도구들이 HTTP 응답 본문을 크기 제한을 적용하기 전에 전체를 버퍼에 저장하는 취약점이 발견되었습니다. 공격자가 조작된 URL을 통해 매우 큰 응답을 스트리밍하면 프로세스 메모리가 고갈되어 워커가 충돌할 수 있습니다. 이 문제는 가용성에 영향을 미치며, SSRF 방어는 여전히 유효합니다.
💡 쉬운 설명
인터넷에서 파일을 가져올 때 크기를 먼저 확인하지 않고 전부 메모리에 담으려다 컴퓨터가 멈추는 문제입니다. 공격자가 아주 큰 파일을 보내면 프로그램이 메모리 부족으로 강제 종료될 수 있습니다.
🇺🇸 원문 (English)
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.77.0 until 1.107.2 and 2.24.0, web_fetch_tool, the WebFetch local fallback, and remote FileUrl media downloads buffer the complete HTTP response body before enforcing content-size controls. An attacker-influenced URL can stream an arbitrarily large response that exhausts process memory and crashes the worker; affected media types include ImageUrl, DocumentUrl, VideoUrl, and AudioUrl. SSRF protections remain effective, and the impact is limited to availability. This issue is fixed in versions 1.107.2 and 2.24.0.
📍 영향받는 시스템
Pydantic AI versions 1.77.0 to 1.107.2 and 2.24.0
⚔️ 공격 벡터
공격자가 조작된 대용량 응답을 반환하는 URL을 제공하여 메모리 고갈 유도
🛡️ 대응 방법
Pydantic AI를 버전 1.107.2 또는 2.24.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.107.2 미만이거나 2.24.0 미만인 경우 취약한 상태입니다.
pip show pydantic-ai | grep Version