CVE-2026-85674 Details
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).
A remote code execution vulnerability exists in Aider (aider-chat) versions through 0.86.2. The issue arises because Aider automatically loads a configuration file, .aider.conf.yml, from the root of the git repository it is run in. This behavior allows a crafted repository to execute arbitrary commands on the user's machine without any confirmation, LLM interaction, or API key. The vulnerability was confirmed in the latest release and has been a long-standing issue.
Users should avoid running Aider in untrusted repositories. Aider's configuration loading behavior should be modified to require explicit user confirmation before executing commands from repository-supplied configuration files.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 4, 2026CISA-ADP
Assessed Sep 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Aider-AI/aider | [email protected] | ProductSource CodeVendor |
| https://github.com/Aider-AI/aider/blob/v0.86.2/aider/main.py | [email protected] | Source CodeVendor |
| https://github.com/Aider-AI/aider/issues/5254 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.vulncheck.com/advisories/aider-0.86.2-remote-code-execution-via-aider-conf-yml | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Aider-AI aider | <= 0.86.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 10, 2026 | CVE Modified | CISA-ADP |
| Sep 4, 2026 | New CVE Received | [email protected] |
Volerion