Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. go.mongodb.org/mongo-driver/v2
  4. ›
  5. CVE-2026-2303

CVE-2026-2303: mongo-go-driver has Heap Out-of-Bounds Read in GSSAPI Error Handling

February 10, 2026 (updated June 18, 2026)

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.

References

  • github.com/advisories/GHSA-cp6g-7hqx-qxhp
  • jira.mongodb.org/browse/GODRIVER-3770
  • nvd.nist.gov/vuln/detail/CVE-2026-2303

Code Behaviors & Features

Detect and mitigate CVE-2026-2303 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.4.2

Fixed versions

  • 2.4.2

Solution

Upgrade to version 2.4.2 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-183: Permissive List of Allowed Inputs

Source file

go/go.mongodb.org/mongo-driver/v2/CVE-2026-2303.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.