本文へ移動
English version →
高 7.5

pydantic-ai-harnessのToolOutputLimitsに脆弱性、サービス妨害のおそれ

CVE-2026-133161 SecPulse初出

概要

pydantic-ai-harnessのToolOutputLimitsでは、strip_ansiをTrueにすると、ツール出力のANSIエスケープシーケンス除去処理に時間がかかり、イベントループを数十秒から数分占有されるおそれがあります。影響するのは0.4.0から0.69.0までの版で、0.70.0以降に更新すると解消されます。Pydantic AI v1を使っている場合はv2への移行が必要です。更新できるまではstrip_ansiをFalseのままにしてください。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

pydantic-ai-harnessのToolOutputLimitsでは、strip_ansiをTrueにすると、ツール出力のANSIエスケープシーケンス除去処理に時間がかかり、イベントループを数十秒から数分占有されるおそれがあります。影響するのは0.4.0から0.69.0までの版で、0.70.0以降に更新すると解消されます。Pydantic AI v1を使っている場合はv2への移行が必要です。更新できるまではstrip_ansiをFalseのままにしてください。

影響パッケージ

パッケージ影響を受ける版 → 修正版
pydanticpydantic-ai-harness
0.4.0 〜 0.69.0→ 記載なし

この記録には修正版の版が載っていません。修正版の有無と版は、本文か参照URLのベンダーの勧告で確かめてください。

原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Summary ui

With strip_ansi=True, Pydantic AI Harness's ToolOutputLimits capability removes ANSI escape sequences from tool output with a pattern that takes time quadratic in the length of a line. A tool result of a few hundred kilobytes, crafted with many unterminated escape sequences, can occupy the event loop for tens of seconds to minutes, delaying every other request and agent run in the process.

Details

This affects applications that set strip_ansi=True on ToolOutputLimits (named OverflowingToolOutput before 0.13.0) and run tools whose output an attacker can influence, such as shell commands, file reads, fetched pages or MCP servers. Stripping runs on the event loop before the capability reduces the output, so its own size limits do not bound it.

The assumed attacker can place text in content a tool returns.

Mitigation

Upgrade pydantic-ai-harness to 0.70.0 or later. Until then, leave strip_ansi at its default, False.

On Pydantic AI v1, the harness cannot be upgraded past 0.4.0. Upgrade to Pydantic AI v2 and pydantic-ai-harness 0.70.0, or leave strip_ansi off.

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく