Security context

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

py-bson/bson
master @ 4e6b4c2
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Injection: 1 prior fix. Scrutinize any change in this area.
bson/codec.py: most-fixed (2 issues). 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.

Out-of-bounds Read: The BSON decoder is vulnerable to Out-of-bounds Reads if buffer index tracking is updated before binary data extraction, leading to potential crashes or memory exposure when parsing maliciously crafted BSON objects.
Injection: Allowing null bytes in cstring element names enables BSON injection attacks, which can corrupt document structures and allow attackers to inject arbitrary fields into downstream databases.