Security context

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

knplabs/snappy
master @ 133a2c4
2
Fixes
2
CVEs
CRITICAL
Peak severity
Highlights
Path Traversal: 1 prior fix. Scrutinize any change in this area.
src/Knp/Snappy/AbstractGenerator.php: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Phar Deserialization: Attackers can supply a 'phar://' wrapper in output or input paths to trigger PHP object deserialization, potentially leading to remote code execution. This is tracked via CVE-2023-41330 and CVE-2023-28115.
Path Traversal: Insufficient cleanup checks allowed attackers to traverse out of designated temporary directories, enabling arbitrary file deletion during the temporary file cleanup phase.