NULL pointer dereference in MongoDB driver for C - CVE-2026-120955

 

NULL pointer dereference in MongoDB driver for C - CVE-2026-120955

Published: November 10, 2026


Vulnerability identifier: #VU164407
CSH Severity: Medium
CVSS v4: 8.7 [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]
CVE-ID: CVE-2026-120955
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by terminating applications using the MongoDB C Driver GridFS download API.

The vulnerability exists due to a null pointer dereference in mongoc_gridfs_bucket_download_to_stream() when an internal operation fails during file retrieval and stream operations continue without checking its result. A remote attacker can influence file download parameters to trigger application termination through malformed GridFS metadata.


Affected software

MongoDB driver for C
Fedora
mongo-c-driver

How to mitigate CVE-2026-120955

Install security update from vendor's website.

MongoDB driver for C - addressed in versions 1.30.15, 2.5.8
mongo-c-driver - addressed in versions 1.30.15-1.el8, 1.30.15-1.el9, 1.30.15-1.el10_2, 1.30.15-1.fc43, 1.30.15-1.fc44, 2.5.8-1.el10_3, 2.5.8-1.el10_4, 2.5.8-1.fc45

External References

Related Security Bulletins