Security context

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

aristanetworks/anta
main @ f61d63d
4
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Command Injection / Path Traversal: 1 prior fix. Scrutinize any change in this area.
anta/cli/exec/utils.py: most-fixed (2 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.

Path Traversal: Command-derived filenames are constructed using user-controlled command strings; insufficient sanitization allows traversal via '/' or '|' characters, enabling writes outside the intended output directory.
Command Injection / Path Traversal: The regex sanitization for command strings was incomplete, missing backslashes and whitespace, which could allow crafted device names or commands to escape the intended path context.
TLS Certificate Verification Bypass: CloudVision API calls used verify=False by default, exposing credentials and session tokens to man-in-the-middle attacks. The fix enables verification by default with an opt-out flag.