Skip to content

An editorial team and a community building with AI

← All articles

News · Aider-AI (Aider) · 2 min read

Event date: · Published:

Aider AI coding CLI has unpatched shell-command approval bypass

CVE-2026-138386 shows Aider's shell-command confirmation prompt defaults to approval when stdin is closed, letting commands run without user confirmation, and no patched release has shipped.

On November 30, 2026, CVE.org and the National Vulnerability Database published CVE-2026-138386, disclosing a vulnerability in Aider-AI's Aider, an open-source AI pair-programming command-line tool. According to the advisory, Aider's shell-command confirmation prompt silently defaults to approval when standard input is closed, letting shell commands run without the user's confirmation. No patched release had shipped as of the disclosure.

What the advisory discloses

  • CVE-2026-138386 was published on November 30, 2026, and is classified under CWE-693, Protection Mechanism Failure.
  • The flaw affects Aider versions 0.86.0, 0.86.1 and 0.86.2.
  • The vulnerable component is the confirm_ask function in aider/io.py, the Shell Command Confirmation Handler.
  • When stdin is closed, confirm_ask catches an EOFError and falls back to approving the command instead of denying it.
  • CVSS scores are 4.8 (Medium) under v3.1, 0.9 (Low) under v4.0 and 4.3 (Medium) under v2.0; exploitation requires local access, low privileges and user interaction.
  • A public proof-of-concept exploit is reported to exist, and the fix is tracked through GitHub issue #5955 and pull request #5957.

What it means for people building with AI

Aider is a widely used open-source CLI for AI pair programming, and its shell-command confirmation prompt is the human-in-the-loop safeguard that many builders rely on before letting an agent session touch their system. This bypass means that under the right conditions, such as a closed stdin, that safeguard can fail open and let a command execute without the confirmation the user expects to see.

Status and next steps

No patched release of Aider had shipped as of the disclosure date. The fix is pending in an open pull request, tracked alongside GitHub issue #5955 and pull request #5957, so anyone running Aider 0.86.0 through 0.86.2 should watch for an updated release and treat the shell-command confirmation prompt as not fully reliable until one ships.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

Aider AI coding CLI has unpatched shell-command approval bypass | vibecoding.inc