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).
Published: 2026-09-04
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Patch Immediately
AI Analysis

Impact

Aider automatically loads a .aider.conf.yml file from the root of the repository it is launched in. An attacker can insert a test‑cmd or lint‑cmd entry that aider runs through a shell without user confirmation. Because subprocess is invoked with shell=True, the commands are executed with the privileges of the user running aider. This flaw is a classic command injection (CWE‑94) and allows an attacker to run arbitrary code on the victim’s machine.

Affected Systems

The vulnerability affects the Aider‑AI aider project, specifically versions 0.86.2 and the upcoming 0.86.3.dev build. Any environment where aider is executed – Linux, macOS or Windows – is susceptible if the repository contains a crafted .aider.conf.yml file.

Risk and Exploitability

The CVSS score of 8.5 indicates high severity, and even though an EPSS score is unavailable, the lack of a KEV listing does not reduce the risk. The attack vector is local: a user who clones an attacker‑supplied repository and runs aider will have their shell commands executed automatically. Since the tool automatically loads the configuration with no prompt or API key, the exploit is trivial for an attacker who can supply a repo and for users who run aider in unknown repositories.

Generated by OpenCVE AI on September 4, 2026 at 15:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Never run aider in repositories that you have not inspected or that contain a .aider.conf.yml file.
  • Before executing aider, manually examine any .aider.conf.yml file and remove or neutralize any test‑cmd or lint‑cmd entries.
  • If you must work with external repositories, use a wrapper script that either blocks configuration loading or explicitly disables execution of commands defined in .aider.conf.yml.

Generated by OpenCVE AI on September 4, 2026 at 15:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 10 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 04 Sep 2026 16:00:00 +0000

Type Values Removed Values Added
First Time appeared Aider-ai
Aider-ai aider
Vendors & Products Aider-ai
Aider-ai aider

Fri, 04 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
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).
Title aider 0.86.2 Remote Code Execution via .aider.conf.yml
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-10T15:07:53.411Z

Reserved: 2026-09-04T13:32:38.074Z

Link: CVE-2026-85674

cve-icon Vulnrichment

Updated: 2026-09-10T14:24:58.908Z

cve-icon NVD

Status : Deferred

Published: 2026-09-04T15:17:45.597

Modified: 2026-09-10T16:18:00.780

Link: CVE-2026-85674

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T16:00:05Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')