Medium · published May 20, 2026
The MongoDB C Driver's legacy GridFS API accepts malformed file metadata from the database without adequate validation. Crafted documents in a GridFS collection may cause any application that reads those files via the legacy API to either crash (via a division-by-zero) or silently leak process memory contents (via an out-of-bounds read).
| Product | Versions | Fixed in |
|---|---|---|
| mongodb/c_driver | ≥ 1.10.0, < 1.30.8 | 1.30.8 |
| mongodb/c_driver | ≥ 2.0.0, < 2.2.4 | 2.2.4 |