🇰🇷 한글 설명
Pydantic AI 프레임워크의 특정 OpenTelemetry 설정 사용 시, 재시도된 프롬프트 내용이 텔레메트리 백엔드로 유출될 수 있는 취약점입니다. NativeOutput이나 PromptedOutput 등을 사용하는 에이전트의 경우, 유효성 검사 피드백에 포함된 잘못된 모델 값 등이 외부로 노출될 위험이 있습니다.
💡 쉬운 설명
AI 프로그램이 오류를 수정하기 위해 다시 시도하는 과정에서, 민감한 정보가 포함된 대화 내용이 기록 시스템으로 잘못 흘러나갈 수 있는 문제입니다. 이로 인해 AI가 처리하던 중요한 데이터가 외부 관리자나 기록 시스템에 노출될 수 있습니다.
🇺🇸 원문 (English)
Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. From 0.3.4 until 1.107.4 and 2.27.1, OpenTelemetry instrumentation configured with InstrumentationSettings(include_content=False) can export retry prompts outside tool calls in gen_ai.input.messages and pydantic_ai.all_messages. Agents using NativeOutput, PromptedOutput, or output validators on text output can therefore disclose validation feedback, including invalid model values quoted by that feedback, to readers of the telemetry backend. Tool-call retries and deployments that do not use include_content=False are not affected by this specific path. This issue is fixed in versions 1.107.4 and 2.27.1.
📍 영향받는 시스템
Pydantic AI versions 0.3.4 to 1.107.4 and 2.27.1 (where include_content=False is configured)
⚔️ 공격 벡터
OpenTelemetry를 통해 수집되는 텔레메트리 백엔드 로그를 모니터링하여 유출된 프롬프트 및 유효성 검사 피드백 탈취
🛡️ 대응 방법
Pydantic AI를 최신 수정 버전인 1.107.4 또는 2.27.1 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 1.107.4 또는 2.27.1 미만인지 확인하여 취약 여부를 판단합니다.
pip show pydantic-ai | grep Version