ZeroHour

CVE-2026-85674

moderate

Arbitrary command execution in aider via crafted .aider.conf.yml in cloned repositories

CVSS 4.0
8.5 high
EPSS
<1%p6
Published
()
Modified
AI analysis

aider (aider-chat) automatically loads a .aider.conf.yml configuration file from the root of the git repository it is launched in, and runs any test-cmd at startup and lint-cmd on the first file edit through a shell (subprocess with shell=True) without user confirmation, LLM interaction, or an API key. An attacker who hosts a repository containing a crafted .aider.conf.yml can therefore achieve arbitrary command execution on the machine of any user who clones that repository and runs aider inside it, consistent with the local-attack, user-interaction CVSS 4.0 score of 8.5 (AV:L/UI:P). The behavior is long-standing and was confirmed on 0.86.3.dev (current main), so all versions with this auto-load behavior are affected and no fixed version is identified in the available data. The affected population is developers who run aider in repositories they did not author. Exploitation has not been observed: there is no known public PoC, the flaw is not in CISA KEV, and EPSS assigns only a 0.2% probability of exploitation in the next 30 days.

What to do: Before running aider in any repository you did not author, inspect .aider.conf.yml at the repo root — especially test-cmd, lint-cmd, and similar *-cmd settings — or run aider on untrusted clones inside a sandbox or container. Since no patched release is specified in the available data and the behavior is confirmed on current main, monitor the aider project for an advisory or fix. Treat cloned repositories from unknown sources as untrusted input, as with any tool that auto-executes per-repo configuration.

Affected
aider (open-source project; PyPI package aider-chat) aider / aider-chatlong-standing behavior across releases; confirmed on 0.86.3.dev (current main); no fixed version reported in the available data
Estimated exposure
moderateorder of 10,000–100,000 developer installations (rough estimate; no authoritative install counts available) — aider is a widely adopted open-source AI pair-programming CLI with a substantial developer community, but no public active-install or scan counts were available, so the estimate reflects its plausible active user base rather than a…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

aider (aider-chat) automatically loads a .aider.conf.yml configuration file from the root of the git repository it is launched in. A crafted repository can set test-cmd (executed at startup) or lint-cmd (executed on the first file edit), which aider runs through a shell (subprocess with shell=True) without any user confirmation, LLM interaction, or API key. Consequently, a user who clones and runs aider inside an attacker-supplied repository achieves arbitrary command execution on their machine. The behavior is long-standing and was confirmed on 0.86.3.dev (current main).

Weakness
CWE-94
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.