CVE-2026-85674
aider 0.86.2 Remote Code Execution via .aider.conf.yml
- State
- Published
- Severity
- 8.5 High
- Published
- Sep 4, 2026
- Updated
- Sep 10, 2026
- Reserved
- Sep 4, 2026
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).
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.5 High | 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 | VulnCheck |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
aiderAider-AI |
|
References
- GitHub Issue #5254issue-tracking
- https://github.com/Aider-AI/aiderproduct
- https://github.com/Aider-AI/aider/blob/v0.86.2/aider/main.pytechnical-description
- VulnCheck Advisory: aider 0.86.2 Remote Code Execution via .aider.conf.ymlthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.