Security context

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

ag2ai/ag2
main @ 2164bc4
21
Fixes
0
CVEs
CRITICAL
Peak severity
Highlights
Path Traversal: 5 prior fixes. Scrutinize any change in this area.
GitHub: most-fixed (2 issues). Treat as high-risk during review.
16 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: Local code execution engines are prone to writing or executing files outside the designated workspace. Strict path canonicalization and prefix validation are required to prevent arbitrary filesystem writes.
Command Injection: Using user-controlled module names in Python import structures allows attackers to inject malicious code if the module name is not validated as a valid Python identifier.
Remote Code Execution: ConversableAgent historically executed arbitrary code by default, exposing the host system to untrusted model outputs or user inputs. Default execution must be explicitly disabled or containerized.