CVE-2026-85674

aider 0.86.2 Remote Code Execution via .aider.conf.yml

Published Sep 4, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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).

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Aider-ai
Aider-ai aider
Vendors & Products Aider-ai
Aider-ai aider
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'}

Weaknesses
  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 10, 2026, 3:07 PM
Reserved
Sep 4, 2026, 1:32 PM
Status
Deferred
Published
Sep 4, 2026, 3:17 PM
Modified
Sep 10, 2026, 4:18 PM