Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
pkg/build: 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: Arbitrary commands can be injected during compilation by passing dangerous parameters, such as the '-toolexec' flag, inside the GOFLAGS environment variable. Developers should ensure environment variables are tightly validated against a strict allowlist.
Path Traversal: Symlinks contained within the 'kodata' directory can resolve to locations outside the directory structure, resulting in the leakage of sensitive host files into the built container images.
Path Traversal: Unsanitized file paths inside dependency archives can escape the intended target extraction directory when dependency zip files are processed.