MongoDBGHSA-jp34-m864-chwm
MongoDB C Driver mongoc_gridfs_bucket_download_to_stream() aborts the application on malformed GridFS metadata
Fix: upgrade to 1.30.15 or later (2 fixed versions below)
Impact
The GridFS file download API in the MongoDB C Driver does not check the result of an internal operation under certain error conditions during file retrieval. This can cause the process to terminate when stream operations continue. A user who can influence file download parameters can trigger this condition, which may result in service unavailability for applications using the affected API.
Patches
The issue is fixed in MongoDB C Driver 1.30.15 and 2.5.8.
Workarounds
None.
References
- https://github.com/mongodb/mongo-c-driver/releases/tag/1.30.15
- https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.8
- https://jira.mongodb.org/browse/CDRIVER-6494
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| MongoDB C Driver Product | >= 1.25.0, < 1.30.15 | 1.30.15 |
| >= 2.0.0, < 2.5.8 | 2.5.8 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-476