提交 #1077442: Aider-AI Aider 0.86.2 Protection Mechanism Failure信息

标题Aider-AI Aider 0.86.2 Protection Mechanism Failure
描述Aider up to version 0.86.2 can execute a model-suggested shell command without the user's confirmation when standard input is closed, which may lead to command execution on the host running Aider. The confirmation handler treats an end-of-file condition on standard input as the default answer, and the default answer for the shell-command prompt is yes, so a non-interactive run that never passed --yes-always still approves the command. The same fallback applies to the other confirmations whose default answer is yes, including edits to files that were not added to the chat and creation of new files. An attacker who can steer the model, for example through content the model is asked to inspect, can cause the command to be suggested; the closed or non-terminal input channel then approves it without any interaction. The issue was verified with the real CLI: with an explicit no on standard input the command was not executed, with standard input closed the same command executed and created a file, and a second explicit-no run confirmed that the gate works when input is present. The process exits normally and no warning about the skipped confirmation is shown.
来源⚠️ https://github.com/Aider-AI/aider/issues/5955
用户
 EM11 (UID 102789)
提交2026-11-06 08時22分 (23 日前)
管理2026-11-29 16時01分 (23 days later)
状态已接受
VulDB条目445189 [Aider-AI Aider 直到 0.86.2 Shell Command Confirmation aider/io.py confirm_ask 权限提升]
积分20

Might our Artificial Intelligence support you?

Check our Alexa App!