CVE-2026-85674 aider 0.86.2 Remote Code Execution via .aider.conf.yml

High 8.5 Published Updated

Attackers can execute arbitrary commands on a user's machine by tricking them into running aider in a malicious repository with crafted configuration files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-85674?

CVE-2026-85674 is a high-severity command injection vulnerability in Aider-AI aider, published on 4 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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

Which versions are affected by CVE-2026-85674?

How do I fix CVE-2026-85674?

No fix has been published for CVE-2026-85674 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-85674 being exploited?

There is no known exploitation of CVE-2026-85674 in the wild and no public exploit code.

Sources

Also known as GHSA-h3gc-qfjg-2m69.

Is CVE-2026-85674 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free