NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2026-2303: mongo-go-driver has Heap Out-of-Bounds Read in GSSAPI Error Handling

mediumCVSS 4.0 6.9 · 3.1 6.5GHSA-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.

Published Feb 10, 2026 · Updated Jun 18, 2026

Affected packages

go.mongodb.org/mongo-driver

Ecosystem
Go
Affected
< 1.17.7
Fixed in
1.17.7
Check
go list -m go.mongodb.org/mongo-driver

go.mongodb.org/mongo-driver/v2

Ecosystem
Go
Affected
< 2.4.2
Fixed in
2.4.2
Check
go list -m go.mongodb.org/mongo-driver/v2

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to OddBloke.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology