Heap-based buffer overflow in MongoDB driver for C - CVE-2026-106431
Published: October 25, 2026
Vulnerability details
The vulnerability allows a remote attacker to corrupt adjacent process memory or cause a denial of service.
The vulnerability exists due to a one-byte heap-based buffer overflow caused by an off-by-one error in the MongoDB C Driver BSON bulk document writer when serializing documents that end at a specific buffer boundary. A remote attacker can influence the size of documents serialized by an embedding application using the BSON bulk-writer API to cause a zero byte to be written immediately past a heap allocation, corrupting adjacent process memory or terminating the process.
Affected software
Fedora
mongo-c-driver
How to mitigate CVE-2026-106431
mongo-c-driver - addressed in versions 1.30.13-1.el8, 1.30.13-1.el9, 1.30.13-1.el10_2, 1.30.13-1.fc43, 1.30.13-1.fc44, 2.5.6-1.el10_3, 2.5.6-1.el10_4, 2.5.6-1.fc45
External References
Related Security Bulletins
- Multiple vulnerabilities in MongoDB driver for C
- Fedora EPEL 10.4 update for mongo-c-driver
- Fedora EPEL 10.3 update for mongo-c-driver
- Fedora 45 update for mongo-c-driver
- Fedora 43 update for mongo-c-driver
- Fedora EPEL 10.2 update for mongo-c-driver
- Fedora 44 update for mongo-c-driver
- Fedora EPEL 8 update for mongo-c-driver
- Fedora EPEL 9 update for mongo-c-driver