Security context

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

doctrine/mongodb-odm
2.17.x @ bc7fc43
2
Fixes
1
CVEs
HIGH
Peak severity
Highlights
Insecure File Permissions: 1 prior fix. Scrutinize any change in this area.
lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php: most-fixed (1 issue). Treat as high-risk during review.
0 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.

Insecure File Permissions: Overly permissive directory permissions (0777) during document and proxy generation can allow local attackers to write malicious files and execute arbitrary code. This structural risk is highlighted by CVE-2015-5723 where world-writable cache or generated directories led to local code execution.
Insecure Temporary File: Typographical errors during permission tightening operations can lead to silent failures. In this case, passing the wrong variable ($fieldName instead of $fileName) to chmod meant that newly generated PHP hydrator files were left with insecure default permissions instead of being properly restricted.