FlawAtlas
Search the atlas
CVE-2026-2303 Moderate

mongo-go-driver has Heap Out-of-Bounds Read in GSSAPI Error Handling

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.

Exploit probability 0.2%
Published February 10, 2026
Required by Not available
Last source change July 24, 2026

02 / AFFECTED SOFTWARE

Affected packages

Go go.mongodb.org/mongo-driver
Go go.mongodb.org/mongo-driver/v2
Go go.mongodb.org/mongo-driver
Go go.mongodb.org/mongo-driver/v2

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities GO-2026-5327

Mongo-go-driver: Heap Out-of-Bounds Read in GSSAPI Error Handling in go.mongodb.org/mongo-driver

View original source
Open Source Vulnerabilities GHSA-cp6g-7hqx-qxhp

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.

View original source

05 / REFERENCES

Further evidence