CVE-2026-138386
Aider can approve model-suggested shell commands when stdin closes
Aider-AI · Aider
First documented disclosure · Review checkpoint
Summary
A closed input channel can be interpreted as affirmative confirmation for a suggested command.
Severity and exploitation evidence
Low · 2.4/10 · CVSS 4.0. Severity source.
Exploitation not established: The reviewed public report and any maintainer confirmation describe research or a correction, not malicious exploitation or identified victims. No payload, model, package or proof of concept was executed in this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
confirm_ask maps EOFError to its default, normally y. The shell-command caller requires explicit yes but does not override that default, so no typed approval is needed on EOF.
Conditions required
Aider receives a model-suggested shell command during a noninteractive or interrupted session with closed or empty stdin. Attacker influence requires control of content that steers the model; this is not unauthenticated remote access.
Potential impact
Host command execution and other default-yes effects with the user’s privileges despite the missing confirmation.
Affected versions and configurations
CNA lists 0.86.0 through 0.86.2; the original report tests aider-chat 0.86.2.
Fix and mitigation status
PR5957 remains open and unmerged. No fixed package verified; the proposal declines EOF/blank explicit-yes prompts and changes effect-gating defaults to no.
Practical next steps
Avoid unattended runs that rely on an unavailable confirmation channel; use a verified fail-closed correction before processing untrusted material.
Operating lesson
An input failure is not an approval.
Evidence and limits
The original report compares closed stdin with explicit denial. Its discussion of --yes-always is internally imprecise; the proposed patch notes that explicit-yes gates already reject that shortcut. No assurance about that separate mode is inferred. Issuing CNA publication was 2026-11-30, separate from the original public disclosure. Severity is VulDB CNA CVSS 4.0 Low 2.4. CNA also supplies CVSS 3.1 Medium 4.8. Static review only; upstream tests were not repeated.
Sources
- Original public report
Primary source ·
- Open proposed correction
Primary source ·
- Issuing CNA record
Primary source ·