mongo-go-driver has Heap Out-of-Bounds Read in GSSAPI Error Handling
Moderate severity
GitHub Reviewed
Published
Feb 10, 2026
to the GitHub Advisory Database
•
Updated Jun 18, 2026
Description
Published by the National Vulnerability Database
Feb 10, 2026
Published to the GitHub Advisory Database
Feb 10, 2026
Reviewed
Jun 18, 2026
Last updated
Jun 18, 2026
The mongo-go-driver repository contains CGo bindings for GSSAPI (Kerberos) authentication on Linux and macOS. The C wrapper implementation contains a heap out-of-bounds read vulnerability due to incorrect assumptions about string termination in the GSSAPI standard. Since GSSAPI buffers are not guaranteed to be null-terminated or have extra padding, this results in reading one byte past the allocated heap buffer.
References