Security context

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

cb372/scalacache
master @ 66ca97b
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Command Injection: 1 prior fix. Scrutinize any change in this area.
memcached/src/main/scala/scalacache/memcached/MemcachedKeySanitizer.scala: 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.

Command Injection: Inadequate sanitization of control characters, spaces, and newlines in cache keys allowed attackers to inject arbitrary Memcached protocol commands, leading to cache poisoning or unauthorized data retrieval.
Cryptographic Issues: Sharing a mutable MessageDigest instance across threads in the key sanitization process created concurrency hazards, potentially corrupting hashed keys or causing thread-safety failures under high load.