---
id: CVE-2026-114645
title: >-
  Heap overflow via 32-bit length wrap of the URI username in Windows Kerberos
  auth message wrapping
summary: >-
  A 32-bit integer wraparound in the MongoDB C Driver's Windows-only
  Kerberos/SSPI authentication code can cause an undersized heap buffer to be
  allocated when an excessively long credential value is supplied in the
  client's connection con…
severity: medium
cvss: 5.2
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H'
cvssSource: cna
cwe:
  - CWE-190
vendor: MongoDB
product: C Driver
affected:
  - c_driver >= 1.6.0 < 1.30.14
  - c_driver >= 2.0.0 < 2.5.7
published: '2026-10-22'
updated: '2026-10-22'
sourceUpdated: '2026-10-22T20:38:25.360Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-114645'
references:
  - url: 'https://jira.mongodb.org/browse/CDRIVER-6421'
  - url: 'https://github.com/mongodb/mongo-c-driver/releases/tag/1.30.14'
  - url: 'https://github.com/mongodb/mongo-c-driver/releases/tag/2.5.7'
  - url: >-
      https://github.com/mongodb/mongo-c-driver/security/advisories/GHSA-g9mw-2cwh-6hh9
tags:
  - cve.org
ingestedAt: '2026-10-22T22:00:50.430Z'
---

## Overview

A 32-bit integer wraparound in the MongoDB C Driver's Windows-only Kerberos/SSPI authentication code can cause an undersized heap buffer to be allocated when an excessively long credential value is supplied in the client's connection configuration. A party able to control that client-side configuration, in conjunction with the affected authentication mechanism, can cause the driver to write outside the bounds of the allocated buffer. This may result in corruption of client process memory and denial of service of the client application. The issue affects only client builds compiled with the Windows-native authentication backend.

## Affected

- `c_driver >= 1.6.0 < 1.30.14`
- `c_driver >= 2.0.0 < 2.5.7`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
