Security context

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

getsops/sops
main @ 724c3a3
8
Fixes
0
CVEs
HIGH
Peak severity
80.0%
Coverage
Highlights
Privilege Escalation: 2 prior fixes. Scrutinize any change in this area.
cmd/sops/subcommand/exec/exec.go: most-fixed (2 issues). Treat as high-risk during review.
4 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.

Privilege Escalation: Incomplete drop of privileges during user switching could allow executed subcommands to retain supplementary groups or inherit incorrect group IDs because of mismatched parameters in system calls.
Path Traversal: Allowing non-local paths or inadequate directory canonicalization within the 'exec' subcommand can lead to arbitrary file writes or unauthorized file access.
Cryptographic Weakness: Using a non-standard nonce size (32 bytes) with AES-GCM degrades cryptographic guarantees by introducing IV collision risks, which can lead to plaintext recovery.