GHSA-cp6g-7hqx-qxhp

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

At a glance

Published
Updated
CVE
CVE-2026-2303
Aliases
GO-2026-5327
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Description

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 packages

PackageVersions
Go · go.mongodb.org/mongo-driverintroduced 0, fixed 1.17.7
Go · go.mongodb.org/mongo-driver/v2introduced 0, fixed 2.4.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database