Advisory

GHSA-cp6g-7hqx-qxhp

Also known as: CVE-2026-2303, GO-2026-5327

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-10 21:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

go.mongodb.org/mongo-driver

Go · All systems

Affected

  • introduced 0, fixed 1.17.7 (semver)

Fixed versions

1.17.7

Fix

go.mongodb.org/mongo-driver/v2

Go · All systems

Affected

  • introduced 0, fixed 2.4.2 (semver)

Fixed versions

2.4.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences