---
id: CVE-2026-82058
title: >-
  A flaw in MongoDB's JSON Schema validation error generation code allows an
  authenticated user with readWrite privileges to crash the mongod server
summary: >-
  A flaw in MongoDB's JSON Schema validation error generation code allows an
  authenticated user with readWrite privileges to crash the mongod server. When
  a BSON document containing an array with a malformed numeric field name fails
  a $jso…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-248
vendor: mongodb
product: mongodb
affected:
  - 'mongodb >= 7.0.0, < 7.0.41'
  - 'mongodb >= 8.0.0, < 8.0.30'
  - 'mongodb >= 8.3.0, < 8.3.9'
patched:
  - mongodb 8.3.9
published: '2026-09-08'
updated: '2026-09-16'
sourceUpdated: '2026-09-16T20:35:28.927'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-82058'
references:
  - url: 'https://jira.mongodb.org/browse/SERVER-130926'
    label: cna@mongodb.com
tags:
  - nvd
  - cve.org
epss: 0.00402
epssPercentile: 0.31648
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-08T17:59:42.835732Z'
ingestedAt: '2026-09-08T16:34:19.257Z'
---

## Overview

A flaw in MongoDB's JSON Schema validation error generation code allows an authenticated user with readWrite privileges to crash the mongod server. When a BSON document containing an array with a malformed numeric field name fails a $jsonSchema items type constraint, the error generation path performs unsafe numeric conversion on the user-controlled field name without proper exception handling, resulting in an uncaught exception that terminates the server process. This is possible because incoming wire protocol BSON validation does not enforce that array element field names are valid, in-range numeric indices.

## Affected

- `mongodb >= 7.0.0, < 7.0.41`
- `mongodb >= 8.0.0, < 8.0.30`
- `mongodb >= 8.3.0, < 8.3.9`

## Remediation

Upgrade past the affected range:

- `mongodb 8.3.9`
