Security context

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

pytest-dev/pytest
main @ 2eac0d6
10
Fixes
2
CVEs
HIGH
Peak severity
85.7%
Coverage
Highlights
Command Injection: 3 prior fixes. Scrutinize any change in this area.
tmpdir: most-fixed (2 issues). Treat as high-risk during review.
2 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.

Path Traversal: Insecure handling of temporary directories can allow local attackers to conduct symlink traversal and modify permissions of arbitrary files on the system during test execution. This is mitigated by refusing to follow symbolic links during validation.
Command Injection: Invoking helper subprocesses using shell strings rather than argument arrays permits command injection when executing tests on remote nodes or handling dynamically generated execution arguments.
Insecure Temporary File: Creating shared testing directories without validating owner identity and enforcing strict 0o700 permission masks exposes sensitive test resources to local unauthorized access and hijacking.