Highlights
Code Injection: 1 prior fix. Scrutinize any change in this area.
ramalama/chat_utils.py: most-fixed (1 issue). 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.
Code Injection: The use of python's 'eval' for evaluating dynamic expressions allowed arbitrary code execution. Future dynamic evaluation must strictly use safe parsers like 'ast.literal_eval' or bounded templating systems to prevent host compromise.
Insecure Defaults: Insecure default configurations in generated Quadlet files risked running containers with excessive privileges. Hardening requires enforcing NoNewPrivileges and dropping capabilities by default.
Privilege Escalation: Executing containers via subprocesses without dropping privileges can lead to host escape. The execution environment must actively enforce no-new-privileges and drop capabilities.