Highlights
Command Injection: 2 prior fixes. Scrutinize any change in this area.
lib/net/scp.rb: 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.
Command Injection: Remote file paths are dynamically concatenated into shell commands executed via SSH. Inadequate sanitization or partial character escaping (such as only targetting space characters) allows attackers to supply malicious filenames containing shell metacharacters to execute unauthorized commands.