---
id: CVE-2026-107325
title: >-
  Improper validation of a BSON array length in the MongoDB Go Driver can cause
  an out-of-bounds index and runtime panic when an application calls
  bson.RawArray.Validate or bsoncore.Array.Validate on a malformed four-byte
  array
summary: >-
  Improper validation of a BSON array length in the MongoDB Go Driver can cause
  an out-of-bounds index and runtime panic when an application calls
  bson.RawArray.Validate or bsoncore.Array.Validate on a malformed four-byte
  array. An unauthe…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-129
published: '2026-10-08'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T20:49:23.240'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107325'
references:
  - url: 'https://jira.mongodb.org/browse/GODRIVER-4136'
    label: cna@mongodb.com
tags:
  - nvd
ingestedAt: '2026-10-08T20:06:22.185Z'
---

## Overview

Improper validation of a BSON array length in the MongoDB Go Driver can cause an out-of-bounds index and runtime panic when an application calls bson.RawArray.Validate or bsoncore.Array.Validate on a malformed four-byte array. An unauthenticated actor who can supply raw BSON array data to an affected application may terminate an unprotected application process, causing a denial of service. No confidentiality or integrity impact has been identified.

## Remediation

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