Description (CNA)
Aider through 0.86.2 contains a command execution vulnerability that allows attackers to run shell commands by committing a malicious .aider.conf.yml that is auto-loaded without a trust prompt. Attackers can set notifications-command or editor values that are executed via subprocess with shell=True after model replies or /editor use, running commands with the victim's privileges.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Aider-AI / aider | affected 0 through 0.86.2 |
CWE
CWE-78
References
- https://github.com/Aider-AI/aider/issues/5885
- https://github.com/Aider-AI/aider/blob/v0.86.2/aider/io.py#L1088-L1094
- https://github.com/Aider-AI/aider/blob/v0.86.2/aider/editor.py#L89-L134
- https://github.com/Aider-AI/aider/blob/v0.86.2/aider/main.py#L464-L479
- https://www.vulncheck.com/advisories/aider-through-0.86.2-command-execution-via-repository-aider-conf-yml-settings