Skip to main content
EPSS 0.2%top 85%

CVE-2026-85674: Improper Control of Generation of Code ('Code Injection') in Aider-AI aider

0
High
VulnerabilityCVE-2026-85674cvecve-2026-85674
Published: 09/04/2026 (09/04/2026, 14:32:28 UTC)
Source: CVE Database V5
Vendor/Project: Aider-AI
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Aider-AI

aider

Affected versions
>=0 <=0.86.2

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/15/2026, 00:00:34 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses