Ad

CVE-2026-133161

HIGH CVSS 3.1: 7,5 EPSS 0.46%
Обновлено 23 ноября 2026
Параметр Значение
CVSS 7,5 (HIGH)
Уязвимые версии до 0.13.0
Тип уязвимости CWE-1333 (Атака через регулярные выражения (ReDoS))
Публичный эксплойт Нет

Summary ui With `strip_ansi=True, возможность Pydantic AI Harness's `ToolOutputLimits удаляет последовательности ANSI из вывода инструмента с шаблоном, который занимает квадратичное время по длине линии. 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. Зачистка выполняется по циклу событий до того, как возможность уменьшает выход, поэтому ее собственные ограничения по размеру не ограничивают ее.

Предполагаемый злоумышленник может поместить текст в контент, возвращаемый инструментом. Mitigation Upgrade `pydantic-ai-harness к 0.70.0 или более поздней версии. А пока оставьте strip_ansi по умолчанию, False.

На Pydantic AI v1 жгут не может быть обновлен до уровня 0.4.0. Обновитесь до Pydantic AI v2 и pydantic-ai-harness` 0.70.0, или оставьте strip_ansi выключенным.

Показать оригинальное описание (EN)

### 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.

Характеристики атаки

Способ атаки
По сети
Атака возможна удалённо
Сложность
Низкая
Легко эксплуатировать
Нужны права
Не требуются
Права не нужны
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Нет
Нет утечки данных
Целостность
Нет
Нет модификации данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1