🇰🇷 한글 설명
Pydantic AI 프레임워크의 web_fetch_tool 및 WebFetch 폴백 기능에서 HTML을 마크다운으로 변환할 때 과도한 CPU와 메모리를 소비하는 취약점이 발견되었습니다. 공격자가 제어하는 깊게 중첩된 블록 요소를 포함한 HTML을 처리할 경우, 중간 출력물이 급격히 팽창하여 서비스 지연을 유발할 수 있습니다.
💡 쉬운 설명
특수하게 조작된 웹 페이지를 읽어올 때 컴퓨터의 자원을 과도하게 사용하여 시스템을 느리게 만들거나 멈추게 할 수 있는 문제입니다. 마치 복잡하게 꼬인 종이를 풀려고 할 때 시간이 너무 오래 걸려 다른 일을 못 하게 만드는 것과 같습니다.
🇺🇸 원문 (English)
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 1.77.0 until 1.107.7 and 2.52.0, the local web_fetch_tool and the WebFetch local fallback can consume excessive CPU and memory during HTML-to-Markdown conversion of attacker-controlled HTML containing deeply nested block elements. Conversion repeatedly reprocesses accumulated text and can greatly expand intermediate output before the returned-content limit is applied, allowing a model-directed fetch to delay other work in the process. Provider-native web fetching is not affected. This issue is fixed in versions 1.107.7 and 2.52.0.
📍 영향받는 시스템
Pydantic AI versions 1.77.0 to 1.107.7 and 2.52.0
⚔️ 공격 벡터
공격자가 조작한 깊게 중첩된 HTML 구조를 포함한 웹 페이지를 AI 에이전트가 읽도록 유도함
🛡️ 대응 방법
Pydantic AI를 최신 버전인 1.107.7 또는 2.52.0 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.107.7 미만이거나 2.52.0 미만인 경우 취약한 버전입니다.
pip show pydantic-ai | grep Version