The prompt required a yes and got one from nowhere
Aider runs whatever shell command its model suggests, but only after it shows that command and asks the user to confirm it one step at a time. That confirmation is supposed to require a typed yes before anything executes, and the surrounding handler marks the request as one needing explicit approval. When the invocation has its standard input closed or redirected to an empty file, the prompt reads end of file instead of a line of text. Nobody types anything, and the command runs.
The fallback lives in a confirmation helper in aider/io.py, which catches the end-of-file error and returns the function's default value, and that default is yes. The caller had passed a flag requiring an explicit yes before a command runs, and the end-of-file branch supplies the default yes, which that check accepts because it compares only the answer's text. The upstream handler sets the flag for every shell command it processes, so the mismatch sits inside a single module. The check accepted the default.
The same fallback covered edits and new files
The confirmation path is not only for shell commands, because the same helper approves edits made outside the chat and the creation of new files. In each case a closed input resolves the question to yes, so a non-interactive invocation can accept file changes nobody reviewed. The reporter recorded the shell case with a proof of concept that runs a touch command and writes a marker file when aider is started with an empty input. The marker appears without input.
What the advisory does and does not cover
The advisory rates the issue 4.8, a low score, because the attack needs local access and a deliberately non-interactive invocation. Aider-chat up to version 0.86.2 is affected, and no release carries the fix yet, though a pull request that would add one has been opened and awaits acceptance. The advisory itself is still unreviewed and tagged low, and the reporter filed the issue against version 0.86.2 on 6 November. The exposure is local.
Two advisories published the same day affect Agent Zero up to and including 2.16, and both problems they report remain unpatched in every current release. One disables authentication when a credential line is missing, and the other drops an infection check at the moment an error occurs. They share no cause with Aider. Each one turns a missing check into an allowance rather than a refusal, which is the same failure shape as Aider's.
Log take
Log take: A confirmation prompt is a control only when something sits on the other end to answer it. Aider treats a closed input as consent, and every tool that inherits the same fallback will treat that closed input the same way. The hole is small. The fix is a short change that makes the default a refusal instead of an approval for a command nobody approved. Until it ships, a script that pipes an empty input into a coding agent is asking that agent to say yes.
