Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

aider-ai/aider
main @ 5dc9490
13
Fixes
6
CVEs
HIGH
Peak severity
60.0%
Coverage
Highlights
Denial of Service: 5 prior fixes. Scrutinize any change in this area.
aider/commands.py: most-fixed (6 issues). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Command Injection: Command execution can occur if file names containing shell metacharacters are passed to subprocesses without proper escaping. Safe shell quoting must be consistently applied across all execution paths.
Path Traversal: File system reading operations can be manipulated to traverse outside the repository root if user/LLM-supplied paths are not canonicalized and matched against a strict prefix check.
Path Traversal: Git operations and repository commands must enforce strict boundaries to prevent adding or promoting files located outside of the designated workspace root.