Генерация уязвимости Error Message Containing Sensitive Information в ash-проекте ash_ai позволяет вызывающему инструменту AshAi считывать детали внутренних ошибок, включая имена модулей и значения данных, путем отказа вызова инструмента. AshAi.ToolError получил реализацию для Ash.Error.Unknown.UnknownError, которая возвращает поле ошибки как есть, и AshAi.Tool.Errors.format/1 отправляет этот текст клиентам MCP (вызовы инструментов и ресурс читается в AshAi.Mcp.Server) и модели в AshAi.ToolLoop. Ash хранит полный вывод Exception.format/2 поднятого исключения, или inspect/1 голого :error, term return, в этом поле.
Результат инструмента, который не может быть закодирован JSON, вызывает Protocol.UndefinedError, текст которого включает проверяемое значение, которое может быть целой записью с полями, которые инструмент никогда не возвращает. Ни одна из этих ошибок не была зарегистрирована. Исправление регистрирует их под идентификатором ошибки и возвращает только этот идентификатор вызывающему абоненту.
Эта проблема затрагивает ash_ai: от 1.5.0 до 1.5.1.
Показать оригинальное описание (EN)
Generation of Error Message Containing Sensitive Information vulnerability in ash-project ash_ai allows a caller of an AshAi tool to read internal error details, including module names and data values, by making a tool call fail. AshAi.ToToolError gained an implementation for Ash.Error.Unknown.UnknownError that returns the error's error field as is, and AshAi.Tool.Errors.format/1 sends that text to MCP clients (tool calls and resource reads in AshAi.Mcp.Server) and to the model in AshAi.ToolLoop. Ash stores the full Exception.format/2 output of a raised exception, or inspect/1 of a bare {:error, term} return, in that field. A tool result that cannot be JSON-encoded raises a Protocol.UndefinedError whose text includes the inspected value, which can be a whole record with fields the tool never returns. None of these errors were logged. The fix logs them under an error id and returns only that id to the caller. This issue affects ash_ai: from 1.5.0 before 1.5.1.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Ash-Project Ash_Ai
cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*
|
1.5.0
|
1.5.1
|