CVE-2026-85674: Improper Control of Generation of Code ('Code Injection') in Aider-AI aider
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).
CVSS v4.0
Score 8.5high
Affected software
Aider-AI
aider
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because aider automatically executes shell commands specified in the .aider.conf.yml configuration file located in the root of the git repository it is launched in. Specifically, the test-cmd (executed at startup) and lint-cmd (executed on first file edit) are run through a shell subprocess with shell=True, without any user confirmation or interaction. This allows an attacker who convinces a user to clone and run aider inside a malicious repository to execute arbitrary commands on the victim's machine. This behavior is confirmed in version 0.86.3.dev and affects all versions up to 0.86.2.
Potential Impact
An attacker can achieve arbitrary command execution on the victim's machine by supplying a malicious git repository that contains a crafted .aider.conf.yml file. This can lead to full compromise of the user's environment where aider is run, potentially allowing data theft, system manipulation, or further malware deployment. The vulnerability requires the user to clone and run aider inside the attacker-controlled repository, and user interaction is required to trigger execution.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid running aider in untrusted or attacker-controlled git repositories. Review and sanitize .aider.conf.yml files before running aider commands. Monitor official Aider-AI channels for updates and patches addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-04T13:32:38.074Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9adb47acd9273b49bef5c3
Added to database: 09/04/2026, 14:52:55 UTC
Last enriched: 09/15/2026, 00:00:34 UTC
Last updated: 10/18/2026, 18:48:24 UTC
Views: 91
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.