Security context

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

ultralytics/yolov3
master @ 1e83373
9
Fixes
1
CVEs
HIGH
Peak severity
33.3%
Coverage
Highlights
Privilege Escalation: 5 prior fixes. Scrutinize any change in this area.
utils/utils.py: most-fixed (3 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.

Arbitrary Code Execution: Using unsafe PyYAML loaders allows untrusted training configuration files to execute arbitrary code during execution. This represents a critical supply-chain entry point if external users load untrusted configuration files.
Denial of Service: Incomplete or off-by-one clamping boundary calculations in grid index construction lead to out-of-bounds indexing errors, causing training and inference runs to crash.
Privilege Escalation: GitHub Actions workflows running with unrestricted default GITHUB_TOKEN permissions risk token theft and subsequent repository modification if an action is compromised or malicious code is introduced via pull requests.