Skip to content

CVE-2026-2303 Heap Out-of-Bounds Read in Go Driver GSSAPI C Wrappers enables application crash or information leak

MediumCVSS 6.9 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
go.mongodb.org/mongo-driver(Go) < 1.17.7; < 2.4.2 1.17.7, 2.4.2 Fixed
MongoDB Go Driver >= 1.0.0, < 1.17.7; >= 2.0.0, < 2.4.2 1.17.7, 2.4.2 Fixed

Affected products

ProductAffected versionsFixed in
MongoDB Go Driver >= 1.0.0, < 1.17.7 1.17.7
MongoDB Go Driver >= 2.0.0, < 2.4.2 2.4.2
go.mongodb.org/mongo-driver(Go) < 1.17.7 1.17.7
go.mongodb.org/mongo-driver(Go) < 2.4.2 2.4.2

References