Security context

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

comex/rust-shlex
master @ 653936e
2
Fixes
1
CVEs
HIGH
Peak severity
Highlights
Command Injection: 2 prior fixes. Scrutinize any change in this area.
src/bytes.rs: 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.

Command Injection: Embedded null bytes inside strings passed to deprecated `quote` APIs can truncate shell arguments, leading to command injection when executed via systems that handle arguments as null-terminated C-strings. Applications should migrate to the `try_` equivalents which explicitly reject these null bytes.
Command Injection: Failure to identify specific characters (like curly braces `{` and non-ASCII UTF-8 sequences such as `\xa0`) as requiring quoting allowed attackers to escape shell arguments and inject arbitrary commands.