Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-9100 EUVD-2026-31132GHSA-87jr-c2qj-3qrg

Heap memory out of bounds read and crash in C Driver legacy GridFS file reader

Published May 20, 2026 · Updated May 20, 2026 · Assigned by mongodb

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).

Affected products

VendorProductAffectedFixed
MongoDB C Driver 1.0 – < 1.30.8, 2.0 – < 2.2.4 1.30.8

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mongo-c-driver 2.2.4-1 —
Debian 13 mongo-c-driver 1.30.4-1+deb13u2 —
Debian 12 mongo-c-driver 1.23.1-1+deb12u3 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 mongo-c-driver No fix yet —
Ubuntu 26.04 LTS mongo-c-driver No fix yet —
Ubuntu 25.10 mongo-c-driver No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS mongo-c-driver No fix yet —
Ubuntu Pro 22.04 LTS mongo-c-driver No fix yet —
Ubuntu Pro 20.04 LTS mongo-c-driver No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 mongo-c-driver 1.30.14-r0 —

Advisories 1

References