MongoDBGHSA-9wfj-w8vm-j9ph
Out-of-bounds read in SCRAM response parsing in MongoDB C Driver
Fix: upgrade to 1.30.13 or later (2 fixed versions below)
Impact
An out-of-bounds read in SCRAM authentication response parsing in the MongoDB C Driver can read one byte beyond a fixed-size buffer when processing a malformed server-final message. A server or network intermediary able to provide this message before server-signature verification can cause the application using the driver to terminate. The extra byte is not returned through the protocol.
Patches
Fixed in 1.30.13 and 2.4.0.
Workarounds
Ensure server certificate is verified and trusted.
References
https://www.cve.org/CVERecord?id=CVE-2026-106428
https://jira.mongodb.org/browse/CDRIVER-6370
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| MongoDB C Driver Product | >= 1.1.0, < 1.30.13 | 1.30.13 |
| >= 2.0.0, < 2.4.0 | 2.4.0 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-125