{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.86.2"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "59250e070e6472967b9c83069baa33eb32d69faf"
            }
          ],
          "repo": "https://github.com/aider-ai/aider",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85674.json"
  },
  "details": "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).",
  "id": "CVE-2026-85674",
  "modified": "2026-09-06T03:30:59.419196769Z",
  "published": "2026-09-04T14:32:28.178Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85674.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85674"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/aider-0.86.2-remote-code-execution-via-aider-conf-yml"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/Aider-AI/aider/issues/5254"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/Aider-AI/aider"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/Aider-AI/aider/blob/v0.86.2/aider/main.py"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "aider 0.86.2 Remote Code Execution via .aider.conf.yml"
}