CVE-2026-2303: Heap Out-of-Bounds Read in Go Driver GSSAPI C Wrappers enables application crash or information leak
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/go.mongodb.org/mongo-driver/v2to a version that resolves this vulnerability.Fixed in 2.4.2 - Upgrade
Upgrade
go/go.mongodb.org/mongo-driverto a version that resolves this vulnerability.Fixed in 1.17.7
Event History
Frequently Asked Questions
What is the severity of CVE-2026-2303?
CVE-2026-2303 is classified as a high severity vulnerability due to its potential to cause application crashes or information leaks.
How do I fix CVE-2026-2303?
To fix CVE-2026-2303, update the mongo-go-driver to the latest version that addresses this vulnerability.
What types of software are affected by CVE-2026-2303?
CVE-2026-2303 affects the mongo-go-driver CGo bindings for GSSAPI (Kerberos) authentication on Linux and macOS.
What are the potential impacts of CVE-2026-2303?
The potential impacts of CVE-2026-2303 include application crashes and the possibility of sensitive information leaks.
How was CVE-2026-2303 discovered?
CVE-2026-2303 was discovered through issues reported in the mongo-go-driver repository related to the heap out-of-bounds read.