Description
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).
Problem types
CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input
Product status
1.0 (custom) before 1.30.8
2.0 (custom) before 2.2.4
References
jira.mongodb.org/browse/CDRIVER-6281