Security context

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

doctrine/orm
3.6.x @ 0c8ce85
5
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
tests/cc.php: 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.

SQL Injection: The EntityManager's find() method historically permitted SQL injection if unrecognized or invalid identifier keys were passed directly, bypassing the UnitOfWork's loading query protections. Developers must ensure that entity identifiers are thoroughly validated against metadata definitions before query construction.
Insecure Temporary File: File and directory creation utilities historically relied on world-writable (0777) permissions, presenting a local privilege escalation vector in shared environments. File-writing helpers should always enforce strict default masks (e.g., 0775 or 0664).
Path Traversal: A coverage reporting script was vulnerable to local file inclusion via path traversal because it did not restrict the 'file' parameter. While the specific script was subsequently modified and disabled, any diagnostic or test script exposed to input must strictly restrict file system access.