CVE-2026-2303

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

Published Feb 10, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from an out‑of‑bounds read in the CGo bindings used by the MongoDB Go Driver’s GSSAPI authentication on Linux and macOS. An attacker could trigger a read of one byte past a heap buffer when the driver processes a Kerberos token that is not null‑terminated. This leads to either a crash of the application or inadvertent exposure of memory contents that may contain sensitive information. No direct code execution is possible, but the instability and data leakage pose a moderate threat to confidentiality and availability.

Affected Systems

The issue affects MongoDB Inc’s MongoDB Go Driver whenever GSSAPI authentication is enabled on Linux or macOS. Exact vulnerable versions are not listed; therefore any release up to the latest that has not applied the corrective wrapper adjustments is potentially impacted.

Risk and Exploitability

With a CVSS score of 6.9 the vulnerability is classified as medium severity. The EPSS score of less than 1 % indicates a low probability of exploitation at the time of analysis. The attack vector is likely local or requires the ability to send crafted Kerberos tokens to the driver, so it is not an arbitrary external exploit. The vulnerability is not currently listed in CISA’s KEV catalog. The risk is thus moderate but potentially significant for applications that rely on GSSAPI authentication.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the MongoDB Go Driver to the latest release that includes the fix for the out‑of‑bounds read.
  • If immediate upgrading is not possible, temporarily disable GSSAPI authentication or switch to an alternative authentication mechanism.
  • Audit custom Kerberos token handling to ensure that buffers are properly terminated or padded, reducing the risk of similar boundary violations.

Generated by OpenCVE AI on April 17, 2026 at 20:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-cp6g-7hqx-qxhp mongo-go-driver has Heap Out-of-Bounds Read in GSSAPI Error Handling
History
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb go Driver
Vendors & Products Mongodb
Mongodb go Driver
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Heap Out-of-Bounds Read in Go Driver GSSAPI C Wrappers enables application crash or information leak
Weaknesses CWE-183
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses
  • CWE-183

    Permissive List of Allowed Inputs

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Feb 11, 2026, 3:16 PM
Reserved
Feb 10, 2026, 6:55 PM
Status
Deferred
Published
Feb 10, 2026, 8:17 PM
Modified
Jun 17, 2026, 10:30 AM