Security context

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

elastic/elasticsearch
main @ e852f0b
141
Fixes
50
CVEs
CRITICAL
Peak severity
17.9%
Coverage
Highlights
Auth Bypass: 88 prior fixes. Scrutinize any change in this area.
Security: most-fixed (14 issues). Treat as high-risk during review.
59 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.

Auth Bypass: Scroll operations could bypass Document and Field Level Security (DLS/FLS) restrictions if security contexts are not validated and restored from the originating search context.
RCE: Usage of vulnerable logging frameworks like Log4j (pre-2.15.0) allowed remote code execution via log message expansion (Log4Shell).
Sandbox Escape: Untrusted scripts could execute arbitrary operations by escaping sandbox rules if ClassLoader loading is not strictly restricted via ClassPermission checks.