All reports
Medium

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

Affected versions

Version ranges need review.

Affected versions
<2.4.2
Fixed version
2.4.2
Affected versions
< 2.4.2
Fixed version
2.4.2
Affected versions
< 1.17.7
Fixed version
1.17.7
Affected versions
<1.17.7
Fixed version
1.17.7

Exploitation

CVE-2026-2303

Probability of exploitation in the next 30 days: 0.31%

FIRST EPSS · 2026-11-23

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.

Links

Credits

  • OddBloke