Security context

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

mongodb/mongo-c-driver
master @ a3badf8
62
Fixes
0
CVEs
HIGH
Peak severity
32.4%
Coverage
Highlights
Denial of Service: 11 prior fixes. Scrutinize any change in this area.
src/mongoc/mongoc-write-command.c: most-fixed (5 issues). Treat as high-risk during review.
37 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.

Improper Certificate Validation: Multiple fixes across TLS backends address missing peer verification, hostname/IP SAN checks, OCSP/revocation enforcement, and handshake bypasses; a single missed check can enable MITM.
Integer Overflow / Buffer Overflow: Recurring integer overflows in buffer size calculations and missing bounds checks lead to heap overflows/over-reads in core parsing and encoding paths.
Denial of Service: Unbounded recursion, missing timeouts, infinite loops, and oversized batch sizes repeatedly cause hangs or crashes; each path needs explicit limits and failure handling.