Heap Out-of-Bounds Read in Go Driver GSSAPI C Wrappers enables application crash or information leak
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | MongoDB Go Driver | 1.0.0 to before 1.17.7; 2.0.0 to before 2.4.2 | 1.17.7, 2.4.2 | Patch available | CNA |
| — | go.mongodb.org/mongo-driver (Go) | before 1.17.7 | 1.17.7 | Patch available | GHSA-cp6g-7hqx-qxhp |
| — | go.mongodb.org/mongo-driver/v2 (Go) | before 2.4.2 | 2.4.2 | Patch available | GHSA-cp6g-7hqx-qxhp |
- MongoDB Go Driver VendorMongoDB Affected 1.0.0 to before 1.17.7; 2.0.0 to before 2.4.2 Fixed in 1.17.7, 2.4.2 Patch available CNA
- go.mongodb.org/mongo-driver (Go) Vendor— Affected before 1.17.7 Fixed in 1.17.7 Patch available GHSA-cp6g-7hqx-qxhp
- go.mongodb.org/mongo-driver/v2 (Go) Vendor— Affected before 2.4.2 Fixed in 2.4.2 Patch available GHSA-cp6g-7hqx-qxhp
Remediation
- Fix · CNA MongoDB Go Driver (MongoDB Inc) Fixed in 1.17.7, 2.4.2
- Fix · GHSA-cp6g-7hqx-qxhp go.mongodb.org/mongo-driver (Go) Fixed in 1.17.7 Advisory →
- Fix · GHSA-cp6g-7hqx-qxhp go.mongodb.org/mongo-driver/v2 (Go) Fixed in 2.4.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-2303
- 2026-10-03 Alias added: GHSA-cp6g-7hqx-qxhp
References
More MongoDB vulnerabilities
- TI-2019-08023 Code injection in mongo-express KEVCVSS 3.1CRITICAL 9.9
- TI-2025-13542 Zlib compressed protocol header length confusion may allow memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79422 Unbounded memory growth in MongoDB C# Driver BSON deserialization CVSS 4.0HIGH 8.2
- TI-2026-79427 Authentication bypass via issuer-and-serial-only certificate equality CVSS 4.0HIGH 7.6
Sources
- CVE-2026-2303 · CVE Program
- CVE-2026-2303 · NVD
- FIRST EPSS
- GHSA-cp6g-7hqx-qxhp · GitHub Advisory Database · CC BY 4.0
- CVE-2026-2303 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences