Intel

AIKIDO-2026-10131

go.mongodb.org/mongo-driver/v2 is vulnerable to Out-of-bounds Read

Out-of-bounds Read Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

69

Medium Risk

This Affects:

GOgo.mongodb.org/mongo-driver/v2
2.0.0 - 2.4.2
Fixed in 2.5.0

TL;DR

Affected versions of the package may be vulnerable to buffer over-reads in GSSAPI authentication functions due to incorrect memory allocation and copy lengths. This behavior can read past the end of source buffers when constructing error descriptions or usernames, potentially exposing unintended memory contents instead of safely copying only the valid buffer data.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

go.mongodb.org/mongo-driver/v2 is vulnerable to Out-of-bounds Read in versions 2.0.0 - 2.4.2.

How to fix this

Upgrade the go.mongodb.org/mongo-driver/v2 library to the patch version.

Background Info